/* ==============================
   RESET
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================
   BASE / TIPOGRAFÍA
============================== */

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==============================
   HEADER
============================== */

.site-header {
    background: #ffffff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 20px;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.header-line {
    background-color: #00FFFF;
    height: 10px;
    width: 100%;
}

/* ==============================
   NAVIGATION
============================== */

.main-nav {
    display: flex;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    /* si no entra, baja prolijo */
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    padding: 8px 8px;
    display: block;
    transition: 0.2s ease;
    white-space: nowrap;
    /* evita que un item se corte */
    border-radius: 6px;
}

.menu a:hover {
    color: #0073e6;
    background: #f1f5f9;
}

/* ==============================
   DROPDOWN FIX (sin gap)
============================== */

.submenu {
    position: absolute;
    top: 100%;
    /* pegado al botón */
    left: 0;
    background: #ffffff;
    list-style: none;
    min-width: 260px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: none;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.submenu li {
    width: 100%;
}

.submenu a {
    padding: 10px 14px;
    font-weight: 500;
    font-size: 14px;
    color: #111827;
    white-space: normal;
    border-radius: 0;
}

.submenu a:hover {
    background: #f8fafc;
    color: #0073e6;
}

/* Mantenemos visible mientras el mouse esté
   sobre el botón O sobre el submenu */
.dropdown:hover .submenu {
    display: block;
}

/* ==============================
   HERO (Home)
============================== */

.hero {
    padding: 70px 0 45px 0;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.hero p {
    font-size: 18px;
    max-width: 820px;
    color: #4b5563;
}

/* ==============================
   SERVICE PAGES (page-template.php)
============================== */

.service-page {
    background: transparent;
}

.service-hero {
    padding: 40px 0 25px 0;
}

.service-hero h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 980px;
    line-height: 1.25;
    color: #0f172a;
}

.service-hero .intro-text {
    font-size: 18px;
    color: #4b5563;
    max-width: 900px;
}

.service-content {
    padding: 10px 0 10px 0;
}

.service-content .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.main-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.main-content h2 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #0f172a;
}

.main-content h2:first-child {
    margin-top: 0;
}

.main-content h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111827;
}

.main-content p {
    margin-bottom: 16px;
    font-size: 16px;
    color: #374151;
}

.main-content ul {
    margin: 10px 0 18px 18px;
    color: #374151;
}

.main-content li {
    margin-bottom: 8px;
}

/* ==============================
   CTA (Aside)
============================== */

.cta-section {
    position: sticky;
    top: 18px;
}

.cta-buttons {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Botón base (compacto + moderno) */
.btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.2;
    border: 1px solid transparent;
}

/* WhatsApp */
.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: #1ebe5b;
}

/* Cotización */
.btn-budget {
    background: #0073e6;
    color: #ffffff;
}

.btn-budget:hover {
    background: #005bb5;
}

/* Secundarios */
.btn-secondary {
    background: #f5f7fa;
    border-color: #d6dde6;
    color: #1f2937;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #e9eef5;
}

/* Íconos minimalistas (sin tocar HTML) */
.btn-whatsapp::before {
    content: "💬";
    font-size: 14px;
    line-height: 1;
}

.btn-budget::before {
    content: "🧾";
    font-size: 14px;
    line-height: 1;
}

.btn-phone::before {
    content: "📞";
    font-size: 14px;
    line-height: 1;
}

.btn-mail::before {
    content: "✉";
    font-size: 14px;
    line-height: 1;
}

.cta-buttons .btn:last-child {
    margin-bottom: 0;
}

/* ==============================
   FAQ
============================== */

.faq-section {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    grid-column: 1 / -1;
}

.faq-section h2 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #0f172a;
}

.faq-item {
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
}

.faq-item:first-child {
    border-top: none;
    padding-top: 0;
}

.faq-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #111827;
}

.faq-item p {
    font-size: 15px;
    color: #374151;
}

/* ==============================
   FOOTER
============================== */

.site-footer {
    background: #2f343a;
    color: #ffffff;
    padding: 50px 0 30px 0;
    margin-top: 60px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-info,
.footer-links {
    margin-bottom: 20px;
}

.footer-info p,
.footer-links li {
    margin-bottom: 8px;
    font-size: 15px;
    opacity: 0.95;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.site-footer p strong {
    font-size: 18px;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.site-footer .footer-info {
    max-width: 560px;
}

.site-footer .footer-links {
    min-width: 220px;
}

.site-footer>.container>p {
    width: 100%;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* ==============================
   ZIG-ZAG LAYOUT
============================== */

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    flex-wrap: nowrap;
}

.reverse {
    flex-direction: row-reverse !important;
}

.zigzag-row.reverse {
    flex-direction: row-reverse !important;
}

.zigzag-img,
.zigzag-text {
    flex: 1 1 0;
    min-width: 0;
}

.zigzag-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    display: block;
}

.zigzag-text h2 {
    font-size: 28px;
    margin-bottom: 18px;
    color: #0f172a;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1100px) {
    .menu {
        gap: 10px;
    }

    .menu a {
        font-size: 13px;
        padding: 8px 6px;
    }

    .service-content .container {
        grid-template-columns: 1fr 300px;
        gap: 28px;
    }

    .zigzag-row {
        gap: 34px;
        margin-bottom: 46px;
    }
}

@media (max-width: 992px) {

    .menu {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .menu a {
        white-space: normal;
        padding: 8px 0;
        background: transparent;
    }

    .submenu {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 14px;
        display: block;
    }

    .service-content .container {
        grid-template-columns: 1fr;
    }

    .cta-section {
        position: static;
    }

    .site-footer .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .zigzag-row,
    .zigzag-row.reverse,
    .reverse {
        flex-direction: column !important;
        gap: 30px;
        flex-wrap: nowrap;
    }

    .hero h1 {
        font-size: 30px;
    }

    .service-hero h1 {
        font-size: 28px;
    }
}

/* ==============================
   NAV (Compatibilidad con nav.php actual)
============================== */

.site-header {
    background: #ffffff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 20px;
}

.brand img {
    height: 70px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    padding: 8px 8px;
    display: block;
    transition: 0.2s ease;
    white-space: nowrap;
    border-radius: 6px;
}

.nav-list a:hover {
    color: #0073e6;
    background: #f1f5f9;
}

.nav-list .btn-nav {
    background: #0073e6;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 10px;
}

.nav-list .btn-nav:hover {
    background: #005bb5;
    color: #ffffff;
}

.has-submenu:hover .submenu {
    display: block;
}

.nav-toggle {
    display: none;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .site-header.nav-open .main-nav {
        display: block;
        padding: 10px 0 0 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .submenu {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 14px;
        display: block;
    }

    .nav-list a {
        white-space: normal;
        padding: 8px 0;
        background: transparent;
    }

    .nav-list .btn-nav {
        width: auto;
    }
}

/* === LINKS MODERNOS EN CONTENIDO (REVERSIBLE) === */
.main-content a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.main-content a:hover {
    text-decoration: underline;
}

.main-content a:visited {
    color: #1e40af;
}

/* =========================================================
   HOME: BOTONES DE TARJETAS EN GRIS/BLANCO (REVERSIBLE)
   - Aplica SOLO en la HOME: usa el hecho de que existe .hero
   - NO toca el CTA de la derecha (.cta-buttons)
   Para revertir: borrar este bloque.
========================================================= */

.hero~section .btn-budget,
.hero~section .btn-whatsapp,
.hero~section .btn-secondary,
.hero~section .btn {
    background: #f5f7fa !important;
    border-color: #d6dde6 !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.hero~section .btn-budget:hover,
.hero~section .btn-whatsapp:hover,
.hero~section .btn-secondary:hover,
.hero~section .btn:hover {
    background: #e9eef5 !important;
}

/* Asegura que el CTA derecho siga igual */
.cta-buttons .btn-whatsapp {
    background: #25D366 !important;
    border-color: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.cta-buttons .btn-whatsapp:hover {
    background: #1ebe5b !important;
}

.cta-buttons .btn-budget {
    background: #0073e6 !important;
    border-color: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.cta-buttons .btn-budget:hover {
    background: #005bb5 !important;
}