/* ============================
   BASE
============================ */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================
   HEADER OPTIMIZADO
============================ */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: padding .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-img {
    width: 200px;
    height: auto;
    transition: width .25s ease;
}

.site-header.scrolled .header-logo-img {
    width: 170px;
}

/* MENÚ DESKTOP */
.menu-list {
    display: flex;
    gap: 28px;
}

.menu-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

.menu-list a:hover {
    color: #fe5000;
}

/* CTA DESKTOP */
.header-cta {
    background: #fe5000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
    transition: background .2s ease;
}

.header-cta:hover {
    background: #d94400;
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }
}

/* ============================
   MENÚ MÓVIL PREMIUM
============================ */

.mobile-menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 3px;
    transition: .3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 10000;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    padding: 40px 28px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    transition: right .35s ease;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 0;
    display: block;
    transition: color .2s ease;
}

.mobile-menu a:hover {
    color: #fe5000;
}

.mobile-menu .btn-primary {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .menu-list {
        display: none;
    }
}

/* ============================
   HERO
============================ */

.hero {
    padding: 90px 0;
    background: #f9fafb;
}

.hero-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 24px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background: #fe5000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #d94400;
}

.btn-secondary {
    border: 1px solid #fe5000;
    color: #fe5000;
}

.btn-secondary:hover {
    background: #fff4ec;
}

/* ============================
   HERO SWIPER
============================ */

.hero-swiper {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.hero-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    transition: background .2s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(0,0,0,0.45);
}

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
}

.swiper-pagination-bullet-active {
    background: #fe5000;
}

/* ============================
   CONTACTO
============================ */

.contact-page {
    background: #ffffff;
}

.contact-hero {
    padding: 80px 0 40px;
    background: #f9fafb;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.contact-hero-inner h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-hero-inner p {
    color: #4b5563;
}

.contact-section {
    padding: 60px 0;
}

.contact-inner {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.contact-form-card,
.contact-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
}

.contact-form-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #fe5000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(254,80,0,0.2);
}

textarea {
    min-height: 140px;
}

.btn-primary.full {
    width: 100%;
    padding: 14px;
    border: none;
    cursor: pointer;
}

/* ============================
   FOOTER
============================ */

.site-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 12px;
}

.footer-text {
    color: #4b5563;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fe5000;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
}

/* ============================
   BLOG
============================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title a {
    color: #1a1a1a;
    font-size: 18px;
    text-decoration: none;
    font-weight: 600;
}

.blog-excerpt {
    color: #4b5563;
    font-size: 14px;
    margin: 12px 0;
    flex-grow: 1;
}

.blog-readmore {
    color: #fe5000;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

/* ============================
   ARCHIVE (BLOG LIST)
============================ */

.archive {
    padding: 60px 0;
    background: #ffffff;
}

.archive-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-kicker {
    font-size: 14px;
    font-weight: 600;
    color: #fe5000;
    margin-bottom: 6px;
}

.archive-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.archive-subtitle {
    font-size: 16px;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.archive-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease;
}

.archive-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.archive-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.archive-meta {
    font-size: 13px;
    color: #6b7280;
    margin: 16px 20px 0;
}

.archive-card-title {
    margin: 10px 20px;
    font-size: 20px;
    font-weight: 700;
}

.archive-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.archive-excerpt {
    color: #4b5563;
    font-size: 15px;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.archive-readmore {
    margin: 0 20px 20px;
}

.archive-readmore a {
    color: #fe5000;
    font-weight: 600;
    text-decoration: none;
}

.archive-pagination {
    margin-top: 40px;
    text-align: center;
}

/* ============================
   SINGLE POST — OPTIMIZADO
============================ */

.single-page {
    padding: 60px 0;
    background: #ffffff;
}

.single-hero {
    padding: 60px 0 30px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.single-hero-inner h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.single-date {
    font-size: 14px;
    color: #6b7280;
}

/* CONTENIDO */
.single-content-section {
    padding: 50px 0;
}

.single-content-inner {
    max-width: 760px;
    margin: auto;
    padding: 0 20px;
}

/* IMAGEN DESTACADA */
.single-featured {
    margin-bottom: 30px;
}

.single-featured img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* TEXTO */
.single-content {
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1.75;
}

/* TITULOS DENTRO DEL POST */
.single-content h2,
.single-content h3,
.single-content h4 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.single-content h2 {
    font-size: 28px;
}

.single-content h3 {
    font-size: 22px;
}

.single-content h4 {
    font-size: 18px;
}

/* PÁRRAFOS */
.single-content p {
    margin-bottom: 22px;
}

/* LISTAS */
.single-content ul,
.single-content ol {
    margin: 20px 0 20px 25px;
    line-height: 1.7;
}

.single-content li {
    margin-bottom: 10px;
}

/* CITAS */
.single-content blockquote {
    border-left: 4px solid #fe5000;
    padding-left: 18px;
    margin: 30px 0;
    color: #4b5563;
    font-style: italic;
}

/* TABLAS */
.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.single-content table th,
.single-content table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
}

.single-content table th {
    background: #f9fafb;
    font-weight: 600;
}

/* IMÁGENES DENTRO DEL CONTENIDO */
.single-content img {
    border-radius: 12px;
    margin: 30px 0;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-swiper {
        height: 300px;
    }

    .contact-inner,
    .services-inner,
    .about-inner,
    .values-grid,
    .blog-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-swiper {
        height: 220px;
    }

    .hero-title {
        font-size: 30px;
    }

    .single-hero-inner h1 {
        font-size: 28px;
    }

    .single-content {
        font-size: 17px;
    }
}
