/* ============================================================
   styles.css — AerotermiaPro
   ============================================================ */

/* ── General ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container-sub {
    display: block;
    margin: 30px;
}

main {
    min-height: 750px;
}

.full-width {
    display: block;
    margin: 1em auto;
    max-width: 100%;
    height: auto;
}

.titulo-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
    color: #183546;
    font-size: 40px;
}

.titulo-logo img {
    width: 320px;
    height: auto;
    vertical-align: middle;
    display: block;
}

/* ── Logo ── */
.logo a { display: flex; align-items: center; }
.logo img {
    width: 90%;
    max-width: 450px;
    height: 45px;
}

.logo-placeholder img { border-radius: 10px; }

/* ============================================================
   HEADER DESKTOP
   ============================================================ */
.main-header {
    background-color: #183546;
    color: white;
    padding: 0;
    height: 68px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

/* ── Nav desktop ── */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav ul li a {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 11px;
    border-radius: 7px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.main-nav ul li a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* Área Profesional — verde sutil */
.main-nav .link-area-pro,
.main-nav ul li a.link-area-pro {
    background: rgba(137,236,114,.1);
    border: 1px solid rgba(137,236,114,.25);
    color: #89ec72 !important;
    font-weight: 700;
}
.main-nav .link-area-pro:hover,
.main-nav ul li a.link-area-pro:hover {
    background: rgba(137,236,114,.18) !important;
    border-color: rgba(137,236,114,.5) !important;
    color: #89ec72 !important;
}

/* Gestiona tu CAE — ámbar */
.btn-cae {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(255,183,77,.12) !important;
    border: 1px solid rgba(255,183,77,.35) !important;
    color: #ffb74d !important;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 13px !important;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
    cursor: pointer;
    margin-top: 0 !important;
}
.btn-cae:hover {
    background: rgba(255,183,77,.22) !important;
    border-color: rgba(255,183,77,.6) !important;
    color: #ffb74d !important;
}
.btn-cae svg { flex-shrink: 0; }

/* Botón verde antiguo en nav */
.main-nav ul li .btn-green {
    background-color: #00c853;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: bold;
}
.main-nav ul li .btn-green:hover { background-color: #00bfa5; }

/* ============================================================
   BOTÓN AerotermiaPRO
   ============================================================ */
.boton-aerotermiapro {
    font-size: 18px;
    border-radius: 12px;
    display: inline-block;
    cursor: pointer;
    background: #CAE8BC !important;
    color: #183546 !important;
    border: 2px solid #ffffff !important;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 6px 18px rgba(24,53,70,.15);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.boton-aerotermiapro:hover {
    transform: translateY(-3px) scale(1.02);
    background: #d7f2c8 !important;
    box-shadow: 0 12px 28px rgba(24,53,70,.25);
}
.boton-aerotermiapro:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 4px 10px rgba(24,53,70,.2);
}
.boton-aerotermiapro:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(202,232,188,.5),
        0 10px 24px rgba(24,53,70,.2);
}

.boton-aerotermiapro-header {
    margin-top: 0 !important;
    padding: 8px 16px;
    font-size: 14px;
}

.boton-aerotermiapro-body {
    padding: 18px 76px;
}

/* ============================================================
   MÓVIL — NAV INFERIOR
   ============================================================ */
.mobile-nav,
.mobile-menu {
    display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background-color: #183546;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-footer ul li a {
    color: #00c853;
    text-decoration: none;
    font-size: 0.9rem;
}

.main-footer ul li a:hover { color: #00e676; }

.footer-logo img { width: 50px; }

/* ============================================================
   HERO
   ============================================================ */
.hero-content {
    color: white;
    display: flow-root;
    text-align: center;
}

.hero-container {
    display: block;
    margin: 130px 130px 30px 130px;
    color: #183546;
}

.hero-container h1 {
    font-size: 3rem;
    margin: 0;
}

.hero-container p {
    font-size: 2rem;
    margin: 10px;
    line-height: 50px;
}

.hero-btn {
    font-size: 1.4rem;
    color: white;
    background-color: #183546;
    border-radius: 10px;
    margin: 0 30px;
    padding: 7px;
}
.hero-btn:hover { background-color: grey; }

.title-aerotermia {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,.7);
}
.title-pro {
    color: #89ec72;
    text-shadow: 2px 2px 4px rgba(0,0,0,.7);
}

.btn-primary {
    font-size: 1.6rem;
    background-color: #89ec72;
    border-radius: 10px;
    padding: 5px;
}
.btn-primary:hover { border-color: white; }

/* ============================================================
   INFO SECTIONS
   ============================================================ */
.info-sections {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    background-color: ghostwhite;
    margin: 30px;
    border-radius: 10px;
    color: white;
    padding: 20px;
}

.info-sections .info-block:nth-child(1) { grid-column: 1 / 4; }
.info-sections .info-block:nth-child(2) { grid-column: 4 / 7; }
.info-sections .info-block:nth-child(3) { grid-column: 1 / 3; }
.info-sections .info-block:nth-child(4) { grid-column: 3 / 5; }
.info-sections .info-block:nth-child(5) { grid-column: 5 / 7; }

.info-block {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 35px rgba(24,53,70,.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.info-block:hover {
    box-shadow: 0 18px 45px rgba(24,53,70,.14);
}

.info-block h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #183546;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
}

.info-block img {
    border-radius: 18px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.info-block img:hover {
    transform: scale(1.05) translateY(-8px);
}

@keyframes flotando {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.calculator-more {
    font-size: 1.8rem;
    border-radius: 10px;
    background-color: #89ec72;
    color: darkblue;
}
.calculator-more:hover { border-color: white; }

.calculator-header {
    border-radius: 5px;
    background-color: #89ec72;
    color: darkblue;
    font-size: 1rem;
}
.calculator-header:hover { border-color: white; }

/* ============================================================
   NEWS
   ============================================================ */
.news {
    display: block;
    margin: 30px;
    border-radius: 10px;
    color: #183546;
    background-color: ghostwhite;
    text-align: center;
}
.news-intro {
    margin: auto;
    padding: 30px;
}
.news-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    justify-items: center;
    margin-bottom: 20px;
}
.news a {
    text-decoration: auto;
    color: #183546;
    font-style: italic;
}
.news a:hover { text-decoration: underline; }

.news-article {
    margin: 10px;
    text-align: center;
}
.news-article img {
    width: 300px;
    height: 200px;
}

/* ============================================================
   PROFESSIONALS
   ============================================================ */
.professionals {
    display: flex;
    justify-content: center;
}
.professionals-text {
    color: #dc7547;
    text-align: center;
    padding: 40px;
    border-style: solid;
    border-radius: 20px;
    margin-bottom: 30px;
}
.professionals-btn {
    background: #dc7547;
    border-radius: 10px;
    font-size: 1.3rem;
    color: white;
    padding: 15px;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-header {
    background-color: #183546;
    color: white;
    padding: 2rem 0;
    text-align: center;
}
.blog-title {
    font-size: 2.5rem;
    margin: 130px 0 0.5rem 0;
}
.blog-subtitle {
    font-size: 1.5rem;
    color: #89ec72;
    margin: 0.5rem 0;
}
.blog-meta {
    font-size: 0.9rem;
    color: #ccc;
}
.blog-content {
    padding: 2rem 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.blog-image { text-align: center; }
.blog-image img {
    width: 800px;
    height: 600px;
    margin-bottom: 2rem;
    border-radius: 10px;
}
.table-of-contents {
    background-color: #f4f4f4;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 10px;
}
.table-of-contents h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.table-of-contents ul { list-style: none; padding: 0; }
.table-of-contents ul li { margin: 0.5rem 0; }
.table-of-contents ul li a { color: #183546; text-decoration: none; }
.table-of-contents ul li a:hover { text-decoration: underline; }
.blog-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    text-align: justify;
}
.blog-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #ccc;
    margin-top: 2rem;
}
.share-buttons a {
    display: inline-block;
    margin: 0 0.5rem;
    color: white;
    background-color: #183546;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}
.blog-footer, .share-buttons a:hover {
    background-color: #89ec72;
    color: #183546;
}

/* Blog Index */
.blog-index {
    padding: 3rem 0;
    background-color: #f9f9f9;
}
.blog-index-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 130px;
}
.blog-index-header h1 {
    font-size: 2.5rem;
    color: #183546;
    margin-bottom: 0.5rem;
}
.blog-index-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
}
.blog-card a { text-decoration: none; color: inherit; }
.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.blog-card-placeholder {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: white;
}
.blog-card-content { padding: 1rem; }
.blog-card-title { font-size: 1.5rem; color: #183546; margin: 0.5rem 0; }
.blog-card-subtitle { font-size: 1rem; color: #555; margin: 0.5rem 0; }
.blog-card-date { font-size: 0.9rem; color: #aaa; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
}
.faq-title {
    font-size: 2.5rem;
    color: #183546;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 130px;
}
.faq-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}
.faq-category { margin-bottom: 3rem; }
.faq-category-title {
    font-size: 2rem;
    color: #183546;
    border-bottom: 3px solid #89ec72;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.faq-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    cursor: pointer;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #183546;
}
.faq-toggle {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #89ec72;
    cursor: pointer;
}
.faq-answer {
    display: none;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}
.faq-item.active .faq-answer { display: block; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
}
.contact-title {
    font-size: 2.5rem;
    color: #183546;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 130px;
}
.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.contact-form-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}
.contact-form, .contact-installer {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.contact-form h2, .contact-installer h2 {
    font-size: 1.8rem;
    color: #183546;
    margin-bottom: 1rem;
}
.contact-form form input, .contact-form form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form form button {
    width: 100%;
    padding: 1rem;
    background-color: #89ec72;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

.btn-orange {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #dc7547;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
}
.btn-orange:hover { background-color: #bb5a36; }

/* ============================================================
   STEPWIZARD / UPLOAD
   ============================================================ */
.stepwizard-step p { margin-top: 0; color: #666; }
.stepwizard-row { display: table-row; }
.stepwizard { display: table; width: 100%; position: relative; }
.stepwizard-row:before {
    top: 14px;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 100%;
    height: 1px;
    z-index: 0;
}
.stepwizard-step { display: table-cell; text-align: center; position: relative; }
.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
}
.fade-out { opacity: 0; transition: opacity 0.5s; }
.fade-in  { opacity: 1; transition: opacity 0.5s; }
.formestancias {
    background: lightgray;
    border: 2px black;
    padding: 50px;
    margin: 50px;
}

.upload-drop-zone {
    height: 200px;
    border-width: 2px;
    margin-bottom: 20px;
    color: #ccc;
    border-style: dashed;
    border-color: #ccc;
    line-height: 200px;
    text-align: center;
}
.upload-drop-zone.drop { color: #222; border-color: #222; }

/* ============================================================
   RESPONSIVE 1400px
   ============================================================ */
@media (max-width: 1400px) {
    .info-block img {
        width: 240px;
        height: 200px;
    }
    .info-block { text-align: center; }
    .news-article img {
        width: 180px;
        height: 120px;
    }
    .news-article { text-align: center; }
}

/* ============================================================
   RESPONSIVE 1200px
   ============================================================ */
@media (max-width: 1200px) {
    .info-block h2 { font-size: 1.3rem; }
    .info-block p  { font-size: 1rem; }
    .calculator-more { font-size: 1.4rem; }
    .news-article { margin: 10px; font-size: 0.9rem; }

    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================================
   RESPONSIVE 1024px (tablet)
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content { margin: 0 20px; }
    .hero-container h1 { font-size: 3rem; }
    .hero-container p  { font-size: 1.6rem; line-height: 1.5; }

    .info-sections {
        flex-direction: column;
        align-items: center;
        grid-template-columns: repeat(2, 1fr);
    }
    .info-block img { width: 400px; height: 300px; }

    .news {
        flex-direction: column;
        align-items: center;
        margin: 20px 50px;
    }
    .news-intro { margin: 30px 0; text-align: center; }
    .news-article { margin: 20px 0; }
    .news-content { grid-template-columns: repeat(2, 1fr); }

    .blog-image img { width: 90%; height: auto; }
}

/* ============================================================
   RESPONSIVE 768px (móvil)
   ============================================================ */
@media (max-width: 768px) {

    html, body { width: 100%; overflow-x: hidden; }

    /* Hero */
    .hero-container, .blog-title, .blog-header {
        margin: 50px 10px 30px 10px;
    }
    .hero-container h1 { font-size: 2rem; }
    .hero-container p  { font-size: 1.2rem; line-height: 1.4; }
    .titulo-logo img   { width: 290px; }

    /* Info sections */
    .info-sections {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        display: block;
    }
    .boton-aerotermiapro-body  { padding: 18px; }
    .info-block    { margin: 10px 0; width: auto; }
    .info-block img { width: 100%; height: 180px; }
    .calculator-more { margin: 0 0 25px 0; }

    /* News */
    .news         { flex-direction: column; margin: 10px 40px; }
    .news-intro   { text-align: center; margin: 20px 0; width: auto; }
    .news-content { grid-template-columns: 1fr; }
    .news-intro h2 { font-size: 1.1rem; width: auto; }
    .news-article  { margin: 10px 0; width: auto; padding: 0 20px; }
    .news-article img { width: 240px; height: 180px; }

    .professionals-text { margin: 30px; }

    /* Contact */
    .contact-form-container { flex-direction: column; }
    .contact-form, .contact-installer { width: 85%; }

    /* Blog / FAQ / Contact headers */
    .blog-index-header, .faq-title, .contact-title { margin-top: 50px; }

    /* ── HEADER DESKTOP: oculto en móvil ── */
    .main-header { display: none; }

    /* ── NAV MÓVIL: barra inferior fija ── */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #183546;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        z-index: 1000;
        border-top: 1px solid rgba(255,255,255,.15);
    }

    .mobile-logo img { height: 30px; }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 2rem;
        color: white;
        padding: 4px 8px;
        border-radius: 6px;
        transition: background .15s;
        user-select: none;
        background: none;
        border: none;
    }
    .hamburger:hover { background: rgba(255,255,255,.1); }

    /* ── MENÚ MÓVIL desplegable ── */
    .mobile-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        bottom: 60px;
        left: 0;
        width: 100%;                        /* antes 50% — ahora full */
        background-color: #183546;
        z-index: 999;
        box-shadow: 0 -4px 16px rgba(0,0,0,.25);
        border-top: 1px solid rgba(255,255,255,.08);
        animation: slideUp .22s ease both;
    }
    @keyframes slideUp {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .mobile-menu.show { display: flex; }

    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu ul li {
        margin: 0;
        text-align: left;                   /* antes right */
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .mobile-menu ul li:last-child { border-bottom: none; }

    .mobile-menu ul li a,
    .mobile-menu ul li button {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 13px 20px;
        font-size: 14px;
        font-weight: 600;
        color: rgba(255,255,255,.85);
        text-decoration: none;
        background: none;
        border: none;
        font-family: 'Montserrat', sans-serif;
        cursor: pointer;
        transition: background .15s;
    }
    .mobile-menu ul li a:hover,
    .mobile-menu ul li button:hover {
        background: rgba(255,255,255,.06);
        color: #fff;
    }

    /* Colores especiales en móvil */
    .mobile-menu .link-area-pro { color: #89ec72 !important; font-weight: 700 !important; }
    .mobile-menu .link-cae      { color: #ffb74d !important; font-weight: 700 !important; }

    /* Botón pedir presupuesto dentro del menú */
    .mobile-menu ul li a .boton-aerotermiapro,
    .mobile-menu ul li .boton-aerotermiapro-header {
        margin: 0 20px 14px !important;
        width: calc(100% - 40px);
        display: block;
    }

    /* ── Fila CTAs doble al pie del menú ── */
    .mobile-cta-row {
        display: flex;
        gap: 10px;
        padding: 12px 16px 16px;
        border-top: 1px solid rgba(255,255,255,.08);
    }
    .mobile-btn-cae {
        flex: 1;
        display: block;
        background: rgba(255,183,77,.12);
        border: 1px solid rgba(255,183,77,.35);
        color: #ffb74d;
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 700;
        padding: 10px 8px;
        border-radius: 8px;
        text-align: center;
        text-decoration: none;
    }
    .mobile-btn-presupuesto {
        flex: 1;
        display: block;
        background: #89ec72;
        color: #183546;
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 800;
        padding: 10px 8px;
        border-radius: 8px;
        text-align: center;
        text-decoration: none;
        border: none;
    }

    /* Footer: espacio extra por la barra fija */
    .main-footer ul { flex-direction: column; gap: 1rem; margin-bottom: 70px; }
}