:root {
    --primary: #00995d;
    --primary-light: #00b36b;
    --accent: #edffef;
    --text: #333;
    --light-bg: #f4fbf6;
    --white: #ffffff;
    --gray: #666;
    --error: #d32f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOP BAR */
.top-bar {
    background: #f1f1f1;
    padding: 8px 0;
    font-size: 0.75rem;
    color: #555;
    border-bottom: 1px solid #ddd;
}

.top-bar-flex {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

/* NAVBAR */
nav {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1px;
}

.logo span {
    color: #222;
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* HERO */
.hero {
    background: var(--accent);
    padding: 100px 0;
    position: relative;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1.3;
}

.badge {
    background: var(--white);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0b2e21;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: #3e5a4f;
    margin-bottom: 40px;
    max-width: 600px;
}

.btn-green {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 10px 25px rgba(0, 153, 93, 0.3);
}

.btn-green:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 153, 93, 0.4);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* SECTIONS COMMON */
section {
    padding: 100px 0;
}

.sec-header {
    text-align: center;
    margin-bottom: 60px;
}

.sec-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #0b2e21;
}

/* CARDS */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.4s;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.s-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

/* BENEFICIOS / FAMILY */
.benefits {
    background: #f9fdfb;
}

.benefits-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.benefits-img {
    flex: 1;
}

.benefits-img img {
    width: 100%;
    border-radius: 30px;
}

.benefits-text {
    flex: 1;
}

.benefits-list {
    list-style: none;
    margin-top: 30px;
}

.benefits-list li {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #444;
}

.benefits-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
}

/* APP SECTION */
.app-section {
    background: var(--primary);
    color: var(--white);
    padding: 0;
    overflow: hidden;
}

.app-flex {
    display: flex;
    align-items: center;
}

.app-text {
    flex: 1;
    padding: 80px 0;
}

.app-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 24px;
}

.app-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.app-img img {
    height: 500px;
    margin-bottom: -40px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,26,15,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    width: 95%;
    max-width: 450px;
    padding: 50px 40px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.login-form input, .login-form select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 1rem;
    color: #2d3748;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.login-form input:focus, .login-form select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 153, 93, 0.1);
}

.error-msg {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 20px;
    border-radius: 16px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: none;
    font-weight: 700;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* FOOTER */
footer {
    background: #0b2e21;
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.disclaimer {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-flex, .benefits-flex, .app-flex { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .app-img img { height: auto; width: 100%; margin: 0; }
    .footer-content { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .whatsapp-float { bottom: 20px; right: 20px; }
    .w-text { display: none; }
}

/* FAQ */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.faq-item { background: #f8fafc; padding: 30px; border-radius: 20px; border: 1px solid #edf2f7; transition: 0.3s; }
.faq-item:hover { border-color: var(--primary); transform: translateY(-5px); }
.faq-item h3 { font-size: 1.1rem; color: #0b2e21; margin-bottom: 15px; }
.faq-item p { font-size: 0.95rem; color: #666; }

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 1500;
    transition: 0.5s;
}

.w-text {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: 0.3s;
}

.whatsapp-float:hover .w-text {
    opacity: 1;
    transform: translateX(0);
}

.w-icon {
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    animation: pulse-w 2s infinite;
}

@keyframes pulse-w {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* LOADER */
.loader {
    width: 18px;
    height: 18px;
    border: 3px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-right: 10px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
