html {
  box-sizing: border-box;
  font-size: 16px;
  font-family: "roboto", Arial, sans-serif;
  scroll-behavior: smooth;
  font-weight: 500;
}

    
*,
*::after,
*::before {
   box-sizing: inherit;
}
    
body {
   margin: 0;
   padding: 0;
}

ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

a{
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p{
    padding: 0;
    margin: 0;
}

section, main, header{
    position: relative;
}

.servicios-thermic {
    padding: 100px 40px;
    background: #ffffff;
}

.servicios-thermic-container {
    width: 90%;
    margin: auto;
}

.servicios-thermic-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 70px;
}

.servicios-thermic-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: flex-start;
}

/* SERVICIOS IZQUIERDA */

.servicios-thermic-lista {
    width: 100%;
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.servicios-thermic-card-servicio {
    padding: 30px;
    background: #fafafa;
    border-right: 4px solid #ff6a00;
    border-bottom: 4px solid #ff6a00;
    border-radius: 20px 0 20px 0;
}

.servicios-thermic-card-servicio h3 {
    margin-bottom: 15px;
    color: #ff6a00;
    font-size: 1.6rem;
    text-align: center;
}

.servicios-thermic-card-servicio ul {
    padding-left: 20px;

}

.servicios-thermic-card-servicio li {
    margin-bottom: 8px;
}

.servicios-thermic-link{
    display: inline-block;
    color: #f2f2f2;
    background-color: #ff6a00;
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 25px;
    text-align: center;
}

/* SLIDER DERECHA */

.servicios-thermic-slider {
    width: 100%;
    position: relative;
    background: #f2f2f2;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.servicios-thermic-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
    padding-bottom: 20px;
}

.servicios-thermic-slide.active {
    display: block;
}

.servicios-thermic-slide::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: #ff6a00;
    animation: borderSlide 8s linear forwards;
}

.servicios-thermic-slide h4 {
    margin-bottom: 15px;
    color: #ff6a00;
    font-size: 1.6rem;
}

.servicios-thermic-text{
    font-size: 1.2rem;
}

.servicios-thermic-persona {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.servicios-thermic-prev,
.servicios-thermic-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.servicios-thermic-prev { left: 10px; }
.servicios-thermic-next { right: 10px; }

/* CTA */

.servicios-thermic-cta-container {
    text-align: center;
    margin-top: 70px;
}

.servicios-thermic-cta {
    padding: 16px 40px;
    background: #1e1e1e;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}

.servicios-thermic-cta:hover {
    background: #ff6a00;
}

/* Animaciones */

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes borderSlide {
    from {width: 0;}
    to {width: 100%;}
}

@media (max-width: 1200px) {
    .servicios-thermic-grid {
        flex-direction: column;
    }

    .servicios-thermic-slider {
        padding: 40px;
        order: -1;
    }
}

@media (max-width: 768px) {

    .servicios-thermic {
        padding: 80px 0;
    }

    .servicios-thermic-slider {
        padding: 30px;
    }

    .servicios-thermic-card-servicio {
        padding: 20px;
    }
}

.soluciones-thermic {
    padding: 120px 0;
    background: #f8f8f8;
}

.soluciones-thermic-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

/* IMAGEN */

.soluciones-thermic-media {
    flex: 1;
}

.soluciones-thermic-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

/* CONTENIDO */

.soluciones-thermic-content {
    flex: 1;
}

.soluciones-thermic-title {
    font-size: 2rem;
    margin-bottom: 40px;
}

/* ACORDEÓN */

.soluciones-thermic-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.soluciones-thermic-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 0;
    cursor: pointer;
}

.soluciones-thermic-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.soluciones-thermic-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}

.soluciones-thermic-body p {
    padding: 10px 0 20px 0;
    line-height: 1.7;
    color: #444;
}

.soluciones-thermic-item.active .soluciones-thermic-body {
    max-height: 500px;
    opacity: 1;
}

@media (max-width: 992px) {

    .soluciones-thermic-container {
        flex-direction: column;
        gap: 50px;
    }

    .soluciones-thermic-image {
        height: 320px;
    }

}

.cta-final-thermic {
    padding: 120px 0;
    background: linear-gradient(135deg, #1c1c1c, #111);
    color: #fff;
    text-align: center;
}

.cta-final-thermic-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.cta-final-thermic-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.cta-final-thermic-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 30px;
}

.cta-final-thermic-highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff6a00;
    margin-bottom: 50px;
}

.cta-final-thermic-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cta-final-thermic-btn-primary {
    padding: 18px 40px;
    background: #ff6a00;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-final-thermic-btn-primary:hover {
    background: #ff8126;
}

.cta-final-thermic-btn-secondary {
    padding: 18px 40px;
    border: 2px solid #ff6a00;
    color: #ff6a00;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-final-thermic-btn-secondary:hover {
    background: #ff6a00;
    color: #fff;
}

@media (max-width: 768px) {

    .cta-final-thermic {
        padding: 80px 0;
    }

    .cta-final-thermic-title {
        font-size: 1.6rem;
    }

    .cta-final-thermic-text {
        font-size: 1rem;
    }

    .cta-final-thermic-highlight {
        font-size: 1.1rem;
    }
}

/* ==============================
   NAV PRINCIPAL
============================== */

.main-nav {
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.main-nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.main-nav-logo img {
    height: 45px;
}

/* MENU */

.main-nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav-menu li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: 0.3s ease;
}

.main-nav-menu li a:hover {
    color: #ff6a00;
}

/* CTA */
.nav-cta {
    background: #ff6a00;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
}

.nav-cta:hover {
    background: #e55d00;
}

/* ==============================
   HAMBURGUESA
============================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #222;
    display: block;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 900px) {

    .nav-toggle {
        display: flex;
    }

    .main-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        display: none;
    }

    .main-nav-menu.active {
        display: flex;
    }

}

/* ==============================
   NAV PRINCIPAL
============================== */

.main-nav {
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.main-nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.main-nav-logo img {
    height: 45px;
}

/* MENU */

.main-nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav-menu li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: 0.3s ease;
}

.main-nav-menu li a:hover {
    color: #ff6a00;
}

/* CTA */
.nav-cta {
    background: #ff6a00;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
}

.nav-cta:hover {
    background: #e55d00;
}

/* ==============================
   HAMBURGUESA
============================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #222;
    display: block;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 900px) {

    .nav-toggle {
        display: flex;
    }

    .main-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        display: none;
    }

    .main-nav-menu.active {
        display: flex;
    }

}
/* ===================================
   BOTONES FLOTANTES
=================================== */

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 9999;
}

.floating-btn {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
}

.floating-btn img {
    width: 55px;
    height: 55px;
    transition: transform .25s ease, filter .25s ease;
}

/* WhatsApp */

.floating-btn.whatsapp {
    background: transparent;
}

/* Facebook */

.floating-btn.facebook {
    background: transparent;
}

/* Hover */

.floating-btn img:hover {
    transform: translateY(-4px);
    filter: drop-shadow(5px 5px 4px #a0a0a0bb);
}

/* ===============================
   BOTON VER IMAGENES
================================ */

.servicios-card-actions{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.servicios-ver-imagenes{
    background:#222;
    color:#fff;
    border:none;
    padding:8px 14px;
    cursor:pointer;
    font-size:14px;
}

.servicios-ver-imagenes:hover{
    background:#000;
}


/* ===============================
   GALERIA MODAL
================================ */

.servicios-galeria{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.servicios-galeria.active{
    display:flex;
}

.servicios-galeria-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.85);
}

.servicios-galeria-contenido{
    position:relative;
    max-width:90%;
    max-height:85%;
}

.servicios-galeria-contenido img{
    max-width:100%;
    max-height:85vh;
    display:block;
}


/* ===============================
   BOTONES
================================ */

.servicios-galeria-prev,
.servicios-galeria-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    color:#fff;
    border:none;
    font-size:28px;
    padding:10px 14px;
    cursor:pointer;
}

.servicios-galeria-prev{
    left:-60px;
}

.servicios-galeria-next{
    right:-60px;
}

.servicios-galeria-cerrar{
    position:absolute;
    top:-40px;
    right:0;
    font-size:36px;
    background:none;
    border:none;
    color:#fff;
    cursor:pointer;
}


/* ===============================
   INDICADORES
================================ */

.servicios-galeria-dots{
    text-align:center;
    margin-top:10px;
}

.servicios-galeria-dots span{
    display:inline-block;
    width:10px;
    height:10px;
    background:#bbb;
    border-radius:50%;
    margin:4px;
}

.servicios-galeria-dots span.active{
    background:#fff;
}

.servicios-intro {
    text-align: center;
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #555;
    line-height: 1.6;
}