:root {
    --color-verde: #91f153;
    --color-verde-oscuro: #2d5216;
    --color-azul: #6fb6ff;
    --color-blanco: #ffffff;
    --fuente-principal: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
}

header {
    background-color: var(--color-verde);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-blanco);
    font-weight: 900;
    font-size: 18px;
    text-transform: lowercase;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1; 
}

.cloud-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10;
}

.Por_que {
    background-color: var(--color-verde);
    padding: 60px 20px 100px 20px;
    text-align: center;
    position: relative;
    margin-top: -2px;
}

.Por_que h2 {
    color: var(--color-verde-oscuro);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
}

.Por_que p {
    color: var(--color-verde-oscuro);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 700;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10;
}

.services-bar {
    background-color: var(--color-azul);
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
}

.services-bar h2 {
    color: var(--color-blanco);
    font-size: 28px;
    font-weight: 900;
}

.cards-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.card {
    position: relative;
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 25px 20px;
    text-align: center;
    color: var(--color-blanco);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    z-index: 3;
}

.bg-verde { background-color: var(--color-verde); }
.bg-azul { background-color: var(--color-azul); }

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}

.card .bubbles-container { z-index: 2; }
.card .bubble {
    bottom: -40px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.6), 0 0 5px rgba(255, 255, 255, 0.3);
}

.card:hover .bubble { animation: flotarBurbujaTarjeta 3.5s infinite ease-in; }
.card .bubble:nth-child(1) { left: 15%; width: 25px; height: 25px; animation-delay: 0s; animation-duration: 2.8s; }
.card .bubble:nth-child(2) { left: 35%; width: 15px; height: 15px; animation-delay: 0.8s; animation-duration: 3.5s; }
.card .bubble:nth-child(3) { left: 55%; width: 30px; height: 30px; animation-delay: 0.3s; animation-duration: 3.2s; }
.card .bubble:nth-child(4) { left: 75%; width: 18px; height: 18px; animation-delay: 1.2s; animation-duration: 2.5s; }
.card .bubble:nth-child(5) { left: 25%; width: 22px; height: 22px; animation-delay: 1.8s; animation-duration: 3s; }
.card .bubble:nth-child(6) { left: 65%; width: 12px; height: 12px; animation-delay: 2.2s; animation-duration: 3.4s; }

@keyframes flotarBurbujaTarjeta {
    0% { bottom: -40px; transform: translateX(0) scale(0.8); opacity: 0; }
    15% { opacity: 0.8; }
    50% { transform: translateX(15px) scale(1.1); }
    85% { opacity: 0.6; }
    100% { bottom: 110%; transform: translateX(-15px) scale(0.8); opacity: 0; }
}

.services-section {
    padding: 60px 20px;
    background-color: var(--color-blanco);
    overflow: hidden;
}

.services-container {
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 45px; 
}

.service-row {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: flotarFilaServicio 4.5s ease-in-out infinite;
}

.service-row.row-reverse {
    flex-direction: row-reverse;
}

.service-row:nth-child(even) { animation-delay: 0.8s; }
.service-row:nth-child(3n) { animation-delay: 1.5s; }

.service-row:hover {
    animation-play-state: paused;
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.service-image {
    flex: 1;
    height: 320px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.service-info h3, 
.service-info p {
    color: var(--color-blanco) !important;
    margin: 0;
}

.service-info h3 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 14px;
}

.service-info p {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.bg-green { background-color: var(--color-verde); }
.bg-blue { background-color: var(--color-azul); }

@keyframes flotarFilaServicio {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.nosotros-section {
    position: relative;
    padding: 100px 20px;
    background-color: #ffffff;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
}

.nosotros-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.nosotros-block {
    max-width: 580px;
    position: relative;
    z-index: 5;
}

.mision-block {
    align-self: flex-start;
    text-align: left;
    border-left: 5px solid #2b6cb0; 
    padding-left: 25px;
}

.mision-block h2 {
    color: #2b6cb0;
    font-size: 38px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
}

.vision-block {
    align-self: flex-end;
    text-align: right;
    border-right: 5px solid #48bb78; 
    padding-right: 25px;
}

.vision-block h2 {
    color: #48bb78;
    font-size: 38px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
}

.nosotros-block p {
    font-size: 17px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.bubble-group-right {
    position: absolute;
    right: -140px;
    top: 20px;
    width: 460px;
    height: 460px;
    z-index: 1;
}

.bubble-group-left {
    position: absolute;
    left: -140px;
    bottom: 25%;
    width: 440px;
    height: 440px;
    z-index: 1;
}

.bubble-vector-giant {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #bceffa;
    border: 5px solid #7be1f7;
    border-radius: 50%;
}

.bubble-crescent {
    position: absolute;
    top: 5%;
    left: 4%;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    box-shadow: -16px -4px 0px 0px rgba(255, 255, 255, 0.55) inset;
    transform: rotate(135deg);
}

.inner-dots-container {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
}

.bubble-dot {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.65);
    border-radius: 50%;
}
.dot-large { width: 42px; height: 42px; top: 0; left: 0; }
.dot-medium { width: 24px; height: 24px; top: 35px; left: 48px; }
.dot-small { width: 14px; height: 14px; top: 68px; left: 32px; }

.satellite-bubble {
    position: absolute;
    background-color: #bceffa;
    border: 3px solid #7be1f7;
    border-radius: 50%;
    box-shadow: inset -4px -2px 0px rgba(255, 255, 255, 0.6);
}

.sat-top-left { width: 55px; height: 55px; left: -25px; top: 30px; }
.sat-mid-left { width: 40px; height: 40px; left: -55px; bottom: 30%; }
.sat-bottom-right { width: 45px; height: 45px; right: 25%; bottom: -45px; }
.sat-top-right { width: 45px; height: 45px; right: -20px; top: 40px; }
.sat-bottom-right-low { width: 55px; height: 55px; right: 20%; bottom: -50px; }

.bubble-center-1 { width: 35px; height: 35px; left: 12%; top: 45%; }
.bubble-center-2 { width: 40px; height: 40px; right: 38%; top: 25%; }

.politica-section {
    margin-top: 100px;
    position: relative;
    z-index: 5;
}

.politica-title-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.politica-title-box h2 {
    color: #2b6cb0;
    font-size: 32px;
    font-weight: 900;
}

.line-decorator {
    flex: 1;
    max-width: 180px;
    height: 8px;
    background-color: #63b3ed;
    border-radius: 4px;
}

.politica-card {
    background-color: #63b3ed;
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
}

.politica-list {
    padding-left: 20px;
    margin: 0;
}

.politica-list li {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 18px;
}
.politica-list li:last-child {
    margin-bottom: 0;
}

.site-footer {
    width: 100%;
}

.footer-cta {
    position: relative;        
    background-color: var(--color-azul);
    color: white;
    text-align: center;
    padding: 60px 20px 110px 20px; 
    overflow: hidden;           
}

.footer-cta .bubbles-container { z-index: 1; }
.footer-cta .bubble {
    bottom: -50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.2);
}

.footer-cta:hover .bubble { animation: subiendoBurbujasFooter 4s infinite ease-in; }
.footer-cta .bubble:nth-child(1) { left: 10%; width: 35px; height: 35px; animation-delay: 0s; animation-duration: 3.2s; }
.footer-cta .bubble:nth-child(2) { left: 23%; width: 18px; height: 18px; animation-delay: 1.2s; animation-duration: 4s; }
.footer-cta .bubble:nth-child(3) { left: 38%; width: 45px; height: 45px; animation-delay: 0.5s; animation-duration: 4.5s; }
.footer-cta .bubble:nth-child(4) { left: 50%; width: 22px; height: 22px; animation-delay: 2.3s; animation-duration: 3.5s; }
.footer-cta .bubble:nth-child(5) { left: 63%; width: 30px; height: 30px; animation-delay: 1.6s; animation-duration: 3.9s; }
.footer-cta .bubble:nth-child(6) { left: 75%; width: 50px; height: 50px; animation-delay: 0.2s; animation-duration: 4.8s; }
.footer-cta .bubble:nth-child(7) { left: 88%; width: 20px; height: 20px; animation-delay: 2.8s; animation-duration: 3.3s; }
.footer-cta .bubble:nth-child(8) { left: 93%; width: 32px; height: 32px; animation-delay: 0.9s; animation-duration: 4.1s; }

@keyframes subiendoBurbujasFooter {
    0% { bottom: -50px; transform: translateX(0) scale(0.8); opacity: 0; }
    15% { opacity: 0.8; }
    50% { transform: translateX(25px) scale(1.1); }
    85% { opacity: 0.6; }
    100% { bottom: 110%; transform: translateX(-25px) scale(0.7); opacity: 0; }
}

.footer-cta h2, .footer-cta p { position: relative; z-index: 2; }
.footer-cta h2 { font-size: 26px; margin-bottom: 12px; font-weight: 900; letter-spacing: -0.5px; }
.footer-cta p { font-size: 16px; font-weight: 700; max-width: 600px; margin: 0 auto 25px auto; line-height: 1.4; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #62e631; 
    color: white;              
    text-decoration: none;
    padding: 10px 28px;        
    border-radius: 7px;        
    font-weight: 900;          
    font-size: 17px;           
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
    transition: transform 0.2s, background-color 0.2s;
    position: relative;
    z-index: 3;                
}

.btn-whatsapp:hover { transform: scale(1.03); background-color: #55d424; }
.icon-whatsapp { width: 22px; height: 22px; margin-right: 10px; fill: white; }

.footer-cloud-divider {
    position: absolute;
    bottom: -2px;              
    left: 0;
    width: 100%;
    height: 70px;              
    display: block;
    z-index: 2;
}

.footer-logo-box {
    background-color: white;
    text-align: center;
    padding: 40px 20px 60px 20px; 
}

.footer-big-logo { max-width: 280px; height: auto; }

.footer-channels-container {
    position: relative;        
    background-color: #84e444; 
    padding: 50px 0 40px 0;
}

.footer-wave-divider {
    position: absolute;
    top: -45px;                
    left: 0;
    width: 100%;
    height: 50px;              
    display: block;
}

.footer-channels {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.channels-left, .channels-right { display: flex; flex-direction: column; gap: 15px; }
.channel-icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.channel-icon.svg-stroke { fill: none; stroke: #2d5216; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.channel-icon.svg-fill { fill: #2d5216; stroke: none; }
.channel-item { display: flex; align-items: center; gap: 14px; color: #2d5216; font-weight: 700; font-size: 15px; }
.social-link { color: #2d5216; text-decoration: none; }

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    /* --- Optimización sección "¿Por qué?" --- */
    .Por_que {
        padding: 40px 20px 65px 20px;
    }
    .Por_que h2 {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    .Por_que p {
        font-size: 15px;
        max-width: 92%;
        line-height: 1.6;
    }
    .Por_que .wave-divider {
        height: 40px !important;
    }

    .services-container {
        gap: 35px;
    }

    .service-row, 
    .service-row.row-reverse {
        flex-direction: column !important; 
    }

    .service-image {
        flex: none !important; 
        width: 100%;
        height: 240px; 
    }

    .service-info {
        flex: none !important;
        width: 100%;
        padding: 35px 20px;
        text-align: center;
    }

    .service-info h3 {
        font-size: 22px;
    }

    .nosotros-container {
        gap: 40px;
    }

    .nosotros-block {
        max-width: 100% !important;
        width: 100% !important;
        align-self: stretch !important;
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    
    .mision-block, 
    .vision-block { 
        align-self: stretch !important;
        text-align: left !important;
        border-left: 5px solid #2b6cb0 !important; 
        border-right: none !important; 
        padding-left: 20px !important;
        padding-right: 0 !important;
    }
    
    .vision-block { 
        border-left-color: #48bb78 !important; 
    }

    .mision-block h2, 
    .vision-block h2 {
        font-size: 30px;
    }

    .bubble-group-right,
    .bubble-group-left,
    .satellite-bubble,
    .bubble-center-1,
    .bubble-center-2,
    .sat-top-left,
    .sat-mid-left,
    .sat-bottom-right,
    .sat-top-right,
    .sat-bottom-right-low {
        display: none !important;
    }

    .politica-section {
        margin-top: 60px;
    }

    .politica-title-box h2 {
        font-size: 24px;
    }

    .line-decorator {
        max-width: 60px;
    }

    .politica-card {
        padding: 25px 20px;
    }

    /* --- Ajustes Footer --- */
    .footer-big-logo {
        max-width: 170px;
    }
    .footer-channels {
        padding: 0 25px;
    }
    .channels-left, 
    .channels-right {
        gap: 22px;
    }
    .footer-channels-container {
        padding: 45px 0 40px 0;
    }
}

@media (max-width: 600px) {
    .footer-channels {
        flex-direction: column;
        gap: 24px; 
        text-align: center;
    }
    .channel-item {
        justify-content: center;
    }
    .footer-wave-divider {
        top: -30px;            
        height: 35px;
    }
}