/* Importar tipografías */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* Definir Hatsch Sans */
@font-face {
    font-family: 'Hatsch Sans';
    src: local('Arial Black'), local('Helvetica Bold'), local('sans-serif');
    font-weight: 800;
    font-style: normal;
}

:root {
    --gris: #434444;
    --azul: #095374;
    --verde: #b0bf3e;
    --verde-claro: #d0da89;
    --blanco: #e7ecea;
}

.cover-energia {
    width: 100%;
    padding-top: 40px;
    align-items: center;
    min-height: 800px;
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo */
.cover-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(9, 83, 116, 0.25) 0%,
            rgba(67, 68, 68, 0.35) 50%,
            rgba(9, 83, 116, 0.25) 100%);
    z-index: 2;
}

/* Elementos geométricos */
.cover-geometricos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.geom {
    position: absolute;
    background: rgba(176, 191, 62, 0.03);
    border: 1px solid rgba(176, 191, 62, 0.1);
}

.geom1 {
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    transform: rotate(45deg);
    animation: floatGeom 20s infinite alternate;
}

.geom2 {
    bottom: 15%;
    left: 5%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    animation: floatGeom 15s infinite alternate-reverse;
}

.geom3 {
    top: 30%;
    left: 10%;
    width: 100px;
    height: 100px;
    transform: rotate(15deg);
    animation: floatGeom 18s infinite alternate;
}

.geom4 {
    bottom: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatGeom 22s infinite alternate-reverse;
}

@keyframes floatGeom {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, -30px) rotate(10deg);
    }
}

/* Círculos de energía */
.cover-circulos {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    height: 80vmin;
    z-index: 3;
    pointer-events: none;
}

.circulo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(176, 191, 62, 0.15);
    border-radius: 50%;
    animation: pulseCirculo 4s infinite;
}

.circulo1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.circulo2 {
    width: 70%;
    height: 70%;
    animation-delay: 1s;
}

.circulo3 {
    width: 40%;
    height: 40%;
    animation-delay: 2s;
}

@keyframes pulseCirculo {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
        border-color: rgba(176, 191, 62, 0.15);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
        border-color: rgba(176, 191, 62, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
        border-color: rgba(176, 191, 62, 0.15);
    }
}

/* Contenido principal */
.cover-contenido {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cover-tag {
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease;
}

.cover-tag span {
    background: rgba(9, 83, 116, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border: 1px solid var(--verde-claro);
    color: var(--blanco);
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

.cover-titulo {
    font-family: 'Hatsch Sans', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: clamp(4px, 1vw, 12px);
    margin-bottom: 0.5rem;
    color: var(--blanco);
    text-transform: uppercase;
    animation: slideUp 0.8s ease 0.2s both;
    text-shadow: 0 2px 10px rgba(9, 83, 116, 0.5);
    white-space: normal;
    word-break: keep-all;
    line-height: 1.2;
    padding: 0 0.5rem;
}

.cover-subtitulo {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.2rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--blanco);
    text-shadow: 0 5px 30px rgba(9, 83, 116, 0.5);
    animation: slideUp 0.8s ease 0.4s both;
    white-space: normal;
    word-break: break-word;
    padding: 0 1rem;
    max-width: 100%;
}

.cover-divisor {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease 0.6s both;
}

.cover-divisor span {
    display: block;
    width: 80px;
    height: 2px;
    background: var(--verde);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--verde-claro);
}

.cover-texto {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.7vw, 1.8rem);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    color: var(--blanco);
    opacity: 0.95;
    animation: fadeIn 0.8s ease 0.8s both;
    text-shadow: 0 2px 5px rgba(9, 83, 116, 0.3);
    padding: 0 1rem;
}

.cover-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 0;
    animation: slideUp 0.8s ease 1s both;
    flex-wrap: wrap;
}

.cover-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.cover-btn-primario {
    background: var(--verde);
    color: var(--gris);
    box-shadow: 0 10px 20px rgba(9, 83, 116, 0.3);
}

.cover-btn-primario:hover {
    background: var(--verde-claro);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(9, 83, 116, 0.4);
}

.cover-btn-primario i {
    transition: transform 0.3s ease;
    color: var(--gris);
}

.cover-btn-primario:hover i {
    transform: translateX(5px);
}

.cover-btn-secundario {
    background: transparent;
    color: var(--blanco);
    border: 2px solid var(--verde-claro);
    backdrop-filter: blur(5px);
}

.cover-btn-secundario:hover {
    background: rgba(176, 191, 62, 0.2);
    border-color: var(--verde);
    transform: translateY(-3px);
}

.cover-btn-secundario i {
    color: var(--verde-claro);
}

.cover-btn-secundario:hover i {
    color: var(--verde);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE COMPLETO ===== */

/* Pantallas grandes (hasta 1200px) */
@media (max-width: 1200px) {
    .cover-titulo {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
        letter-spacing: clamp(3px, 0.8vw, 8px);
    }
    
    .cover-subtitulo {
        font-size: clamp(1.1rem, 4vw, 2.5rem);
    }
}

/* Tablets (hasta 992px) */
@media (max-width: 992px) {
    .cover-energia {
        min-height: 600px;
        padding-top: 15px;
    }
    
    .cover-titulo {
        font-size: clamp(1.5rem, 4.5vw, 2.2rem);
        letter-spacing: clamp(2px, 0.6vw, 6px);
        margin-bottom: 0.3rem;
    }
    
    .cover-subtitulo {
        font-size: clamp(1rem, 3.8vw, 1.8rem);
        padding: 0 0.8rem;
        margin-bottom: 1rem;
    }
    
    .cover-texto {
        font-size: clamp(1rem, 2.4vw, 1.5rem);
        padding: 0 0.8rem;
        max-width: 90%;
        margin-bottom: 1.8rem;
    }
    
    .cover-circulos {
        width: 70vmin;
        height: 70vmin;
    }
    
    .cover-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {
    .cover-titulo {
        font-size: 35px;
        letter-spacing: 2px;
        margin-bottom: 0.2rem;
        padding: 0 0.5rem;
    }
    
    .cover-subtitulo {
        font-size: 32px;
        padding: 0 0.5rem;
        margin-bottom: 0.8rem;
        word-break: break-word;
        white-space: normal;
        line-height: 1.3;
    }
    
    .cover-texto {
        font-size: 1.3rem;
        padding: 0 0.5rem;
        max-width: 95%;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .cover-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
        gap: 0.8rem;
    }
    
    .cover-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .cover-divisor span {
        width: 50px;
        height: 2px;
    }
    
    .cover-circulos {
        width: 70vmin;
        height: 70vmin;
    }
    
    /* Ocultar elementos geométricos en móvil */
    .geom3, .geom4 {
        display: none;
    }
    
    .geom1, .geom2 {
        opacity: 0.3;
        transform: scale(0.5);
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .cover-energia {
        padding-top: 5px;
    }
    
    .cover-tag span {
        font-size: 0.65rem;
        padding: 0.25rem 0.8rem;
    }
    
    .cover-titulo {
        font-size: 35px;
        letter-spacing: 1.5px;
        margin-bottom: 0.15rem;
    }
    
    .cover-subtitulo {
        font-size: 32px;
        padding: 0 0.3rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }
    
    .cover-texto {
        font-size: 1.3rem;
        padding: 0 0.3rem;
        max-width: 100%;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .cover-contenido {
        padding: 1.5rem;
        font-size: 35px;
    }
    
    .cover-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .cover-btn i {
        font-size: 0.7rem;
    }
    
    .cover-divisor span {
        width: 40px;
        height: 1.5px;
    }
    
    .cover-divisor {
        margin-bottom: 0.8rem;
    }
    
    /* Ocultar todos los elementos geométricos en móvil muy pequeño */
    .geom1, .geom2, .geom3, .geom4 {
        display: none;
    }
    
    .cover-circulos {
        width: 50vmin;
        height: 50vmin;
    }
}

/* ===== CENTRADO VERTICAL EN TODOS LOS TAMAÑOS ===== */
.cover-energia {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-contenido {
    font-size: 35px;
    height: auto;
}

/* ===== ARREGLAR BOTONES PEGADOS EN GUARDIA VIRTUAL Y DEMÁS SECCIONES ===== */

/* Hacer que las columnas tengan la misma altura */
.seguridad-3 .grid-2 {
    align-items: stretch !important;
}

/* Convertir la columna de texto en flex para mejor control */
.seguridad-3 .grid-2 > div:first-child {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* Botones al final del contenido pero con espacio */
.seguridad-3 .botones {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 0 !important;
}

/* Asegurar que las listas no tengan márgenes extra */
.seguridad-3 .lista-opciones {
    margin-bottom: 0;
}

.seguridad-3 .lista-opciones:last-child {
    margin-bottom: 0;
}

.seguridad-3 .subtitulo-seccion:last-of-type {
    margin-bottom: 0.5rem;
}

/* Ajustar altura de la imagen para que coincida con el texto */
.seguridad-3 .bloque-imagen {
    height: 100%;
    min-height: 300px;
}

/* Espaciado general de la sección */
.seguridad-3 {
    padding-bottom: 2.5rem;
}

/* ===== RESPONSIVE PARA MÓVIL ===== */
@media (max-width: 768px) {
    .seguridad-3 .grid-2 {
        gap: 1.5rem;
    }
    
    .seguridad-3 .bloque-imagen {
        min-height: 220px;
        height: auto;
    }
    
    .seguridad-3 .botones {
        margin-top: 1.5rem !important;
        padding-top: 0 !important;
    }
    
    .seguridad-3 {
        padding-bottom: 1.8rem;
    }
}

@media (max-width: 480px) {
    .seguridad-3 .bloque-imagen {
        min-height: 180px;
    }
    
    .seguridad-3 .botones {
        margin-top: 1.2rem !important;
    }
    
    .seguridad-3 {
        padding-bottom: 1.5rem;
    }
}

/* ===== SECCIÓN ESPECÍFICA DE GUARDIA VIRTUAL ===== */
#seccion-calentadores {
    padding-bottom: 2rem !important;
}

#seccion-calentadores .botones {
    margin-top: 2rem !important;
}

@media (max-width: 768px) {
    #seccion-calentadores {
        padding-bottom: 1.5rem !important;
    }
    
    #seccion-calentadores .botones {
        margin-top: 1.5rem !important;
    }
}

/* ===== ESPACIO ENTRE IMAGEN Y CONTENIDO EN GUARDIA VIRTUAL ===== */
#seccion-calentadores .grid-2 {
    gap: 3rem !important;
}

#seccion-calentadores .bloque-imagen {
    margin: 0;
    height: 100%;
    min-height: 350px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--verde);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#seccion-calentadores .bloque-imagen:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Contenedor de la imagen con padding opcional */
#seccion-calentadores .grid-2 > div:last-child {
    padding: 0.5rem;
}

/* Espaciado para el texto */
#seccion-calentadores .grid-2 > div:first-child {
    padding-right: 1rem;
}

/* Ajuste para pantallas grandes */
@media (min-width: 1200px) {
    #seccion-calentadores .grid-2 {
        gap: 5rem !important;
    }
    
    #seccion-calentadores .bloque-imagen {
        min-height: 450px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #seccion-calentadores .grid-2 {
        gap: 4rem !important;
    }
    
    #seccion-calentadores .bloque-imagen {
        min-height: 400px;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 769px) {
    #seccion-calentadores .grid-2 {
        gap: 2.5rem !important;
    }
    
    #seccion-calentadores .bloque-imagen {
        min-height: 320px;
    }
    
    #seccion-calentadores .grid-2 > div:first-child {
        padding-right: 0;
    }
}

/* Móvil */
@media (max-width: 768px) {
    #seccion-calentadores .grid-2 {
        gap: 1.8rem !important;
    }
    
    #seccion-calentadores .bloque-imagen {
        min-height: 250px;
        margin-bottom: 0;
        order: -1;
    }
    
    #seccion-calentadores .grid-2 > div:first-child {
        padding-right: 0;
        margin-top: 0;
    }
    
    #seccion-calentadores {
        padding: 1.5rem !important;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    #seccion-calentadores .grid-2 {
        gap: 1.2rem !important;
    }
    
    #seccion-calentadores .bloque-imagen {
        min-height: 200px;
    }
    
    #seccion-calentadores {
        padding: 1rem !important;
    }
}
/* ===== BOTONES DE GUARDIA VIRTUAL FUERA DEL CONTENEDOR ===== */
.botones-guardia-virtual {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.botones-guardia-virtual .btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.botones-guardia-virtual .btn-primario {
    background: var(--verde);
    color: var(--gris);
    border: 2px solid var(--verde-claro);
}

.botones-guardia-virtual .btn-primario:hover {
    background: var(--verde-claro);
    color: var(--azul);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(176, 191, 62, 0.3);
}

.botones-guardia-virtual .btn-secundario {
    background: botones-guardia-virtual;
    color: white;
    border: 2px solid botones-guardia-virtual;
}

.botones-guardia-virtual .btn-secundario:hover {
    background: #d0da89;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* ===== MEJORAS PARA PANTALLAS PEQUEÑAS ===== */
@media (max-width: 768px) {
    .botones-guardia-virtual {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        padding: 1rem 1rem 1.5rem 1rem;
    }
    
    .botones-guardia-virtual .btn {
        width: auto;
        min-width: 200px;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .botones-guardia-virtual {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.5rem 1rem 1.5rem 1rem;
    }
    
    .botones-guardia-virtual .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ===== MEJORAS PARA EL CONTENIDO DE LA SECCIÓN GUARDIA VIRTUAL EN MÓVIL ===== */
@media (max-width: 768px) {
    #seccion-calentadores .subtitulo-seccion {
        font-size: 1.2rem;
        text-align: left;
        margin-top: 1rem;
    }
    
    #seccion-calentadores .lista-opciones li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        line-height: 1.4;
    }
    
    #seccion-calentadores .grid-2 {
        gap: 1rem;
    }
    
    #seccion-calentadores .bloque-imagen {
        min-height: 200px;
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    #seccion-calentadores .subtitulo-seccion {
        font-size: 1rem;
    }
    
    #seccion-calentadores .lista-opciones li {
        font-size: 0.85rem;
    }
    
    #seccion-calentadores .grid-2 > div:first-child {
        padding: 0;
    }
}