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

:root {
    --gradient-start: #f07281;
    --gradient-end: #dd2150;
    --card-bg: #ffffff;
    --primary: #e79aa3;
    --primary-hover: #d88891;
    --text: #222222;
    --muted: #8a8a8a;
    --border: #e5e5e5;
    --decoration-light: rgba(231, 154, 163, 0.12);
    --decoration-lighter: rgba(231, 154, 163, 0.09);
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   ANIMACIONES KEYFRAMES
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1624958308704-7bf565563b55?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx3b21lbiUyMGVtcG93ZXJtZW50JTIwZmxvd2Vyc3xlbnwxfHx8fDE3NjMxNjIyNTF8MA&ixlib=rb-4.1.0&q=80&w=1080');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 64rem;
    animation: fadeIn 1.2s ease-out;
}

.hero-title {
    color: white;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeIn 1.2s ease-out 0.2s backwards;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    line-height: 1.6;
    max-width: 48rem;
    margin: 0 auto;
    animation: fadeIn 1.2s ease-out 0.4s backwards;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: 5rem 1.5rem;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    animation: slideUp 0.8s ease-out;
}

.section-title {
    color: var(--primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-description {
    color: var(--muted);
}

.about-description p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-description strong {
    color: var(--primary);
}

.about-image {
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.image-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.decoration-1 {
    bottom: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background-color: #F4C2C2;
    opacity: 0.6;
}

.decoration-2 {
    top: -1.5rem;
    left: -1.5rem;
    width: 10rem;
    height: 10rem;
    background-color: #C88B8B;
    opacity: 0.4;
}

/* ===================================
   TEAM SECTION
   =================================== */
.team {
    padding: 5rem 1.5rem;
    background-color: #FAF5F5;
}

.team-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease-out;
}

.team-subtitle {
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 48rem;
    margin: 0 auto;
}

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

.team-member {
    animation: slideUp 0.6s ease-out backwards;
}

.team-member:nth-child(1) { animation-delay: 0s; }
.team-member:nth-child(2) { animation-delay: 0.15s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.45s; }

.member-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.member-photo img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.member-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.cta-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: scaleIn 0.6s ease-out 0.2s backwards;
}

.cta-title {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 300;
    line-height: 1.7;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2.5rem;
    background-color: white;
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: white;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: scale(0.95);
}

.cta-button span,
.button-arrow {
    position: relative;
    z-index: 1;
}

.button-arrow {
    display: inline-block;
    animation: arrowMove 1.5s ease-in-out infinite;
}

.cta-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: #6B5858;
    color: white;
    padding: 2.5rem 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.heart-icon {
    color: #F4C2C2;
    width: 1.25rem;
    height: 1.25rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-align: center;
}

.footer-message {
    color: #F4C2C2;
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    text-align: center;
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets y superior */
@media (min-width: 640px) {
    .member-card {
        flex-direction: row;
    }

    .member-photo {
        width: 12rem;
        flex-shrink: 0;
    }

    .member-photo img {
        height: 100%;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .about {
        padding: 8rem 1.5rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .team {
        padding: 8rem 1.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .cta {
        padding: 8rem 1.5rem;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .hero-content {
        padding: 0 3rem;
    }
}