* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #2c3e50;              /* antes var(--color-text) */
    line-height: 1.6;
    background-color: #ffffff;   /* antes var(--color-white) */
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #2d5a78 0%, #5a9ec1 100%); /* secondary -> primary */
    color: #ffffff;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(45, 90, 120, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

nav {
    display: none;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #e0f0f5 0%, #a8d5e0 100%); /* light -> accent */
    padding: 3rem 1.5rem;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d5a78; /* secondary */
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #5a9ec1; /* primary */
    margin-bottom: 1.3rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 1.8rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* GARANTÍA */
.guarantee-box {
    background: #ffffff;
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    max-width: 750px;
    margin: 0 auto 2rem auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 4px 12px rgba(45, 90, 120, 0.15);
    border-left: 5px solid #5a9ec1;  /* primary */
    text-align: left;
}

.guarantee-icon {
    width: 55px;
    height: 55px;
    color: #5a9ec1; /* primary */
}

.guarantee-title {
    color: #2d5a78; /* secondary */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.guarantee-text {
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
}

/* CTA BUTTON */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #5a9ec1 0%, #2d5a78 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(90, 158, 193, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 158, 193, 0.4);
}

/* ABOUT */
.about {
    padding: 3rem 1.5rem;
    background: #ffffff;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about h3 {
    font-size: 1.8rem;
    color: #2d5a78;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-item {
    background: #e0f0f5;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #5a9ec1;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    box-shadow: 0 4px 12px rgba(45, 90, 120, 0.1);
    transform: translateX(4px);
}

.benefit-item h4 {
    color: #2d5a78;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.benefit-item p {
    color: #5a6c7d;
    font-size: 0.95rem;
}

/* PSYCHOLOGISTS SECTION */
.psychologists {
    padding: 3.5rem 1.5rem;
    background: #e4f3f8;
}

.psychologists-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: #2d5a78;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.psychologists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .psychologists-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.psychologist-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(45, 90, 120, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(168, 213, 224, 0.4);
}

.psychologist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(45, 90, 120, 0.25);
}

.card-image {
    width: 100%;
    height: 320px;
    background: #d7e5ec;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.8rem 1.6rem 1.6rem 1.6rem;
}

.psychologist-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d5a78;
    margin-bottom: 0.3rem;
}

.psychologist-specialty {
    color: #5a9ec1;
    font-weight: 600;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.card-credentials {
    background: rgba(224, 240, 245, 0.9);
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-size: 0.86rem;
    color: #5a6c7d;
    border-left: 3px solid #5a9ec1;
}

.psychologist-description {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.7rem;
}

/* BOTONES DE LAS CARDS */
.schedule-btn {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 0.75rem auto;
    background: linear-gradient(135deg, #5a9ec1 0%, #2d5a78 100%);
    color: #ffffff;
    border: none;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.schedule-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 158, 193, 0.35);
    opacity: 0.96;
}

.schedule-btn:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.9;
}

.whatsapp-btn {
    background: #25D366;
}

/* TESTIMONIOS */
.testimonials {
    padding: 3rem 1.5rem;
    background: #ffffff;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background: #e0f0f5;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 10px rgba(45, 90, 120, 0.12);
    border-left: 4px solid #5a9ec1;
}

.testimonial-text {
    font-size: 0.98rem;
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.testimonial-author {
    font-weight: 700;
    color: #2d5a78;
    margin-top: 0;
    margin-bottom: 0.2rem;
    font-size: 1em;
    display: block;
}

.testimonial-stars {
    color: #f1c40f;
    font-size: 1.1rem;
}

/* FAQ */
.faq {
    padding: 3rem 1.5rem;
    background: #ffffff;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #e0f0f5;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    border-left: 4px solid #2d5a78;
}

.faq-item summary {
    font-weight: 600;
    color: #2d5a78;
    font-size: 1rem;
    outline: none;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 0.8rem;
    color: #5a6c7d;
    line-height: 1.6;
}

/* FOOTER */
footer {
    background: #2d5a78;
    color: #ffffff;
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0.4rem 0;
}

/* NAV EN DESKTOP / TABLET */
@media (min-width: 768px) {
    nav {
        display: flex;
        gap: 2rem;
        font-weight: 500;
    }

    nav a {
        color: #ffffff;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    nav a:hover {
        opacity: 0.85;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .about {
        padding: 4rem 2rem;
    }

    .psychologists {
        padding: 4rem 2rem;
    }

    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}
