/*
Theme Name: Sonne Life by Modo1984
Description: Tema personalizado para Sonne Life
Version: 1.0
*/

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #d6b85a;
    --secondary-color: #3F3F3F;
    --text-light: #ffffff;
    --text-dark: #000000;
    --bg-dark: #000000;
    --grey100: #E4E4E4;
    --grey50: #F2F2F2;
    --grey25: #FAFAFA;
    --dark50: #3F3F3F;
    --dark25: #7F7F7F;
    --dark100: #1F1F1F;
    --yellow50: #FFD97B;
    --yellow25: #FFE4A2;
    --yellow100: #E5B43C;
    --font-title-family: "Barlow";
     --font-body-family: "Lato", sans-serif;
}

/* ===== RESET GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-padding-top: 140px;
    scroll-behavior: smooth;
    font-size: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-dark);
    color: var(--grey50);
    font-family: var(--font-body-family);
}

/* Reset de elementos específicos */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-size: inherit; 
    font-weight: inherit;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img, picture, svg, video, canvas {
    display: block;
    max-width: 100%;
}

input, textarea, select, button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

textarea {
    resize: vertical;
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

article, aside, footer, header, nav, section, main {
    display: block;
}

/* ===== UTILIDADES ===== */
.global-gradient {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.yellow-gradient {
    background: linear-gradient(to right, #E5B43C, #FFE4A2) !important;
}

.lowercase {
    text-transform: lowercase !important;
}

.light100{
    font-family: var(--font-title-family);
    font-weight: 100;
}

/* ===== COMPONENTE: BOTONES ===== */
.btn {
    font-family: var(--font-title-family);
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    font-size: inherit;
    text-transform: uppercase;
    letter-spacing: 1.25px;
}

.btn.small {
    padding: 6px 16px;
    font-size: 12px;
}

.btn.regular {
    padding: 12px 24px;
    font-size: 16px;
}

.btn.large {
    border-radius: 8px;
    padding: 0.85rem 3rem;
    font-size: 1.5rem;
    max-width: 80%;
}

.btn.contained.grey50 {
    background: var(--grey50);
    color: var(--dark50);
}

.btn.contained.grey50:hover {
    background: var(--grey25);
}

.btn.contained.yellow50 {
    background: var(--yellow50);
    color: var(--dark50);
}

.btn.contained.yellow50:hover {
    background: var(--yellow25);
}

.btn.outlined {
    background: transparent;
    color: var(--grey100);
    border: 1px solid var(--grey100);
}

.btn.outlined:hover {
    background: transparent;
}

.btn.text {
    background: transparent;
    color: var(--yellow50);
    padding: 8px 0;
    border: none;
    font-weight: 600;
}

.btn.text:hover {
    color: var(--yellow25);
}

/* ===== COMPONENTE: BARRA DE ANUNCIOS ===== */
.announcement-bar {
    height: 46px;
    width: 100vw;
    font-family: var(--font-title-family);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--dark50);
    font-weight: 600;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ===== COMPONENTE: HEADER ===== */
.main-header {
    height: 92px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    position: fixed;
    top: 46px;
    left: 0;
    width: 100%;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    justify-self: start;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-desktop {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-title-family);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-self: end;
}

.social-icon {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

/* ===== COMPONENTE: MENÚ MÓVIL ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    justify-self: end;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.mobile-nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: var(--primary-color);
}

.mobile-social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.mobile-social-icon {
    width: 24px;
    height: 24px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.mobile-social-icon:hover {
    color: var(--primary-color);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: var(--primary-color);
}

/* ===== SECCIÓN: HERO ===== */
.hero {
    height: 100vh;
    max-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    transform: translateY(35%);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-title-family);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--grey50);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ===== SECCIÓN: SECONDARY INFO ===== */
.secondary-info {
    padding: 80px 0 0 0;
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 20px 0;
    text-align: center;
}

.info-title {
    font-family: var(--font-title-family);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.info-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--grey50);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-cta {
    margin-bottom: 60px;
}

.full-width-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: auto;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.exp-shadow {
    position: relative;
    display: inline-block;
    max-width: 100%;
    --shadow-height: 33.33%;
}

.exp-shadow img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    min-height: 285px;
}

.exp-shadow::before,
.exp-shadow::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: var(--shadow-height);
    pointer-events: none;
    z-index: 2;
}

.exp-shadow::before, .black-shadow::before {
    top: 0;
    background: linear-gradient(
        to bottom,
        #000 0%,
        #000 10%,
        rgba(0,0,0,0.9) 20%,
        rgba(0,0,0,0.7) 35%,
        rgba(0,0,0,0.45) 55%,
        rgba(0,0,0,0.25) 75%,
        transparent 100%
    );
}

.exp-shadow::after {
    bottom: 0;
    background: linear-gradient(
        to top,
        #000 0%,
        #000 10%,
        rgba(0,0,0,0.9) 20%,
        rgba(0,0,0,0.7) 35%,
        rgba(0,0,0,0.45) 55%,
        rgba(0,0,0,0.25) 75%,
        transparent 100%
    );
}

/* ===== COMPONENTE: SLIDER ===== */
.slider-component {
    max-width: 1200px;
    margin: 40px auto;
    background: transparent;
    overflow: hidden;
}

.slider-component .section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--grey50);
    font-weight: 600;
    font-family: var(--font-title-family);
    text-transform: uppercase;
    text-align: left;
}

.slider-component .slider-title h2{
    text-transform: uppercase;
}

.slider-component .slider-title h2.bold{
    color: var(--yellow100);
    font-weight: 600;
}

.slider-component .section-title.centered {
    text-align: center;
    align-items: center;
}

.slider-component .slider-title {
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    justify-content: center; 
    font-size: 2rem;
    margin-bottom: 2rem;
}

.slider-component .main-swiper {
    width: 100%;
    height: 400px;
    position: relative;
}

.slider-component .main-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.slider-component .main-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: clamp(0px, 2vw, 12px);
}

.slider-component .main-swiper .swiper-button-next,
.slider-component .main-swiper .swiper-button-prev {
    display: none;
}

.slider-component .cards-container {
    padding: 30px 0;
}

.slider-component .cards-wrapper {
    display: grid;
    gap: 3rem;
}

.slider-component .cards-wrapper[data-card-count="1"] {
    grid-template-columns: 1fr;
}

.slider-component .cards-wrapper[data-card-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.slider-component .cards-wrapper[data-card-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.slider-component .cards-wrapper[data-card-count="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.slider-component .cards-wrapper[data-card-count="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.slider-component .cards-wrapper[data-card-count="6"] {
    grid-template-columns: repeat(6, 1fr);
}

.slider-component .card {
    background: transparent;
    padding: 25px 20px;
    text-align: left;
    transition: all 0.4s ease;
    cursor: pointer;
    border-top: 1px solid var(--dark50);
    display: flex;
    flex-direction: column;
    position: relative;
}

.slider-component .card:hover {
    border-top-color: var(--dark25);
}

.slider-component .card.on {
    border-top: 2px solid var(--yellow25);
}

.slider-component .card.on:hover {
    border-top-color: var(--yellow25);
}

.slider-component .card.centered {
    text-align: center;
    align-items: center;
}

.slider-component .card.centered .card-icon {
    justify-content: center;
}

.slider-component .card:not(.on) {
    color: var(--dark50);
}

.slider-component .card:not(.on) .card-icon svg {
    stroke: var(--dark50);
}

.slider-component .card:not(.on) .card-icon svg[fill] {
    fill: var(--dark50);
}

.slider-component .card:not(.on) h3 {
    color: var(--dark50);
}

.slider-component .card:not(.on) p {
    color: var(--dark50);
}

.slider-component .card:not(.on) a {
    color: var(--dark50);
}

.slider-component .card.on {
    color: var(--grey50);
}

.slider-component .card.on .card-icon svg {
    stroke:  url(#yellow-gradient);;
    fill: url(#yellow-gradient);
}

.slider-component .card.on .card-icon svg[fill] {
    fill: url(#yellow-gradient);
    stroke: none;
}

.slider-component .card.on h3 {
    color: var(--grey50);
}

.slider-component .card.on p {
    color: var(--grey50);
}

.slider-component .card.on a {
    color: var(--yellow100);
}

.slider-component .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slider-component .card.centered .card-icon {
    justify-content: center;
}

.slider-component .card h3 {
    font-family: var(--font-title-family);
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.slider-component .card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.slider-component .card a {
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.slider-component .card a:hover {
    color: var(--yellow50);
}

.slider-component .card a::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.slider-component .card a:hover::after {
    transform: translateX(4px);
}

.slider-component .cards-swiper-mobile {
    display: none;
    position: relative;
    padding-bottom: 40px;
}

.slider-component .cards-swiper-mobile .swiper-button-next,
.slider-component .cards-swiper-mobile .swiper-button-prev {
    display: none !important;
}

.slider-component .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-component .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--dark25);
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-component .swiper-pagination-bullet-active {
    background: var(--yellow100);
    transform: scale(1.2);
}

/* ===== SECCIÓN: ECOSISTEMA SOLAR ===== */
.ecosistema-solar {
    background: #000;
    color: #fff;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.ecosistema-solar .content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    border: none;
}

.ecosistema-solar .text-container {
    flex: 0 0 50%;
    padding: 0;
    position: relative;
    z-index: 2;
}

.ecosistema-solar .text-content {
    padding: 0;
}

.ecosistema-solar .text-content h2 {
    font-size: 2rem;
    font-family: var(--font-title-family);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ecosistema-solar .text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #ccc;
}

.ecosistema-solar .image {
    flex: 0 0 50%;
    position: relative;
    z-index: 4;
}

.ecosistema-solar .image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    z-index: 4;
}

/* ===== SECCIÓN: NOSOTROS ===== */
.nosotros {
    position: relative;
    /*background: url('./images/sobre-nosotros-off.jpg') no-repeat center center/cover;*/
    height: 100vh;
    max-height: 620px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    transition: background-image 0.6s ease;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
}

/*.nosotros:hover {
    background-image: url('./images/sobre-nosotros-on.jpg');
}*/

.nosotros::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0.2) 70%);
    z-index: 1;
}

.nosotros .estado {
    position: absolute;
    display: flex;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 145px;
    height: 124px;
    transition: opacity 0.5s ease;
}

.nosotros .estado img{
    width: 100%;
    height: 100%;
}

.nosotros .on {
    opacity: 0;
    position: absolute;
    inset: 0;
}

.nosotros:hover .on {
    opacity: 1;
}

.nosotros:hover .off {
    opacity: 0;
}

.nosotros-content {
    position: relative;
    z-index: 3;
    max-width: 95%;
    padding: 0 2rem 4rem;
}

.etiqueta {
    color: #F8D36C;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.titulo {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 1rem;
    font-weight: 700;
}

.descripcion {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #ddd;
}

/* ===== SECCIÓN: SOSTENIBILIDAD ===== */
.sostenibilidad {
    position: relative;
    height: 100vh;
    max-height: 620px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    transition: background-image 0.6s ease;
    margin: 40px auto;
    overflow: hidden;
}

.sostenibilidad::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 70%);
    z-index: 1;
    height: 30%;
}

.sostenibilidad::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0.2) 70%);
    z-index: 1;
}

.sostenibilidad-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    max-width: 95%;
    padding: 0 2rem 4rem;
}

/* ===== SECCIÓN: COTIZADOR ===== */
.cotizador {
    background: #000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    padding: 4rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 20px;
}

.cotizador .swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.paso {
    font-family: var(--font-title-family);
    color: #e5b93c;
    font-weight: 600;
    letter-spacing: 1px;
}

.cotizador h2{
    font-size: 2rem;
    font-family: var(--font-title-family);
    margin-bottom: 1.5rem;
}

input[type="text"], input[type="email"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5b93c;
    color: #fff;
    padding: 0.5rem;
    font-family: var(--font-title-family);
}

.opciones label {
    display: block;
    margin-bottom: 1rem;
    cursor: pointer;
}

.acciones {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.acciones:has(button + button) {
  justify-content: space-between;
}

.cotizador button {
    background: none;
    color: #e5b93c;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-title-family);
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ===== SECCIÓN: FOOTER ===== */
.footer {
    background-color: #000;
    padding: 0 0 6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-inner {
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

.footer-line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 auto 1.5rem auto;
    width: 100%;
}

.footer-logo {
    width: 130px;
    margin: 3rem auto;
    display: block;
    filter: brightness(1.2);
    opacity: 0.95;
}

.black-gradient{
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.black-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 10%, rgba(0,0,0,0.2) 70%);
    z-index: 1;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .nav-desktop, .social-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-container {
        grid-template-columns: 1fr auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .info-title {
        font-size: 2rem;
    }

    .info-description {
        font-size: 1rem;
    }

    .full-width-image {
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .info-title {
        font-size: 1.8rem;
    }

    .full-width-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .slider-component .slider-title {
        flex-direction: column;
    }
    
    .slider-component .main-swiper .swiper-button-next,
    .slider-component .main-swiper .swiper-button-prev {
        display: flex;
        width: 40px;
        height: 40px;
        background: var(--yellow25);
        border-radius: 50%;
        color: var(--dark100);
        font-weight: bold;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .slider-component .main-swiper .swiper-button-next::after,
    .slider-component .main-swiper .swiper-button-prev::after {
        font-size: 16px;
        font-weight: bold;
    }
}

@media (max-width: 1024px) {
    .slider-component{
        padding: 0 1rem;
    }
    
    .slider-component .main-swiper {
        height: 350px;
    }
    
    .slider-component .cards-wrapper[data-card-count="3"],
    .slider-component .cards-wrapper[data-card-count="4"],
    .slider-component .cards-wrapper[data-card-count="5"],
    .slider-component .cards-wrapper[data-card-count="6"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slider-component .main-swiper {
        height: 300px;
    }
    
    .slider-component .cards-container {
        padding: 20px 15px;
    }
    
    .slider-component .cards-wrapper {
        display: none;
    }
    
    .slider-component .cards-swiper-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .slider-component .main-swiper {
        height: 250px;
    }
    
    .slider-component .card {
        padding: 20px 15px;
    }
    
    .slider-component .card-icon {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 768px) {
    .ecosistema-solar .text-content {
        padding: 3rem;
    }
    
    .ecosistema-solar .text-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 1px solid #d6b85a;
        border-radius: 16px;
        width: 130%;
        z-index: -1;
    }
}

@media (max-width: 767px) {
    .ecosistema-solar {
        padding: 2rem 1rem;
    }
    
    .ecosistema-solar .content {
        flex-direction: column;
        border: 1px solid #d6b85a;
        border-radius: 16px;
        padding: 2rem;
    }
    
    .ecosistema-solar .text-container {
        flex: none;
        width: 100%;
        padding: 0;
    }
    
    .ecosistema-solar .text-container::before {
        display: none;
    }
    
    .ecosistema-solar .image {
        flex: none;
        width: 100%;
    }
}


/* Estilos para el autocompletado de Google Maps */
.pac-container {
    background-color: #000;
    border: 1px solid #e5b93c;
    border-radius: 4px;
    font-family: var(--font-body-family);
}

.pac-item {
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #333;
}

.pac-item-selected {
    background-color: #e5b93c;
    color: #000;
}

.pac-icon {
    margin-right: 10px;
}

.pac-item-query {
    color: #e5b93c;
    font-weight: bold;
}




.on-off {
    position: relative;
    transition: all 0.5s ease-in-out;
}

.on-off::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0.2) 70%);
    z-index: 1;
}

.on-off.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0.2) 40%);
    z-index: 1;
}

.on-off .estado {
    position: absolute;
    display: flex;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 145px;
    height: 124px;
    transition: opacity 0.5s ease;
}

.on-off .estado img{
    width: 100%;
    height: 100%;
}

.on-off .pictures {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.on-off img {
    transition: opacity 0.5s ease-in-out;
}

/* Estado inicial: mostrar off, ocultar on */
.on-off .estado .on,
.on-off .pictures .on {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.on-off .estado .off,
.on-off .pictures .off {
    opacity: 1;
}

/* Estado activo: mostrar on, ocultar off */
.on-off.active .estado .on,
.on-off.active .pictures .on {
    opacity: 1;
}

.on-off.active .estado .off,
.on-off.active .pictures .off {
    opacity: 0;
}

/* Asegurar que las imágenes tengan el mismo tamaño */
.on-off .pictures img {
    width: 100%;
    height: auto;
    display: block;
}

.on-off .estado {
    text-align: center;
    margin-bottom: 20px;
}


@media (max-width: 768px) {
    .nosotros {
        align-items: flex-end;
        text-align: center;
        height: 90vh;
        margin: 0 1rem;
    }

    .nosotros-content {
        max-width: 90%;
        margin: 0 auto;
        padding-bottom: 3rem;
    }

    .titulo {
        font-size: 1.8rem;
    }

    .descripcion {
        font-size: 0.95rem;
    }

    .nosotros .estado {
        width: 72px;
        height: 62px;
    }

    .on-off .estado {
        width: 72px;
        height: 62px;
    }
}

@media (max-width: 768px) {
    .sostenibilidad {
        align-items: flex-end;
        text-align: center;
        height: 90vh;
    }

    .sostenibilidad-content {
        max-width: 90%;
        margin: 0 auto;
        padding-bottom: 3rem;
    }

    .titulo {
        font-size: 1.8rem;
    }

    .descripcion {
        font-size: 0.95rem;
    }
}

