/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --plum: #7B2D8E;
    --plum-dark: #5A1D68;
    --plum-light: #9B4DB8;
    --plum-bg: #F5EDFA;
    --amber: #F5A623;
    --amber-dark: #D4890A;
    --amber-light: #FDD07B;
    --amber-bg: #FFFAF0;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --shadow-sm: 0 1px 3px rgba(123,45,142,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(123,45,142,0.1), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(123,45,142,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 50px rgba(123,45,142,0.15), 0 8px 20px rgba(0,0,0,0.08);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.25;
    font-weight: 800;
}

a { color: var(--plum); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--plum-dark); }

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

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

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123,45,142,0.08);
    transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--plum);
    text-decoration: none;
}

.nav-logo-text { display: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: all var(--transition);
}

.nav-links a:hover { color: var(--plum); background: var(--plum-bg); }

.nav-cta {
    background: var(--plum) !important;
    color: var(--white) !important;
    margin-left: 8px;
}

.nav-cta:hover { background: var(--plum-dark) !important; color: var(--white) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--plum);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--plum-bg) 0%, var(--white) 50%, var(--amber-bg) 100%);
    padding-top: 72px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--plum);
    top: -200px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--amber);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--plum-light);
    top: 40%;
    left: 45%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.03); }
    66% { transform: translate(-10px, 15px) scale(0.97); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid rgba(123,45,142,0.15);
    color: var(--plum);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 20px;
    color: var(--gray-900);
}

.title-accent {
    color: var(--plum);
    position: relative;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--amber-light);
    opacity: 0.5;
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--plum);
    color: var(--white);
    border-color: var(--plum);
    box-shadow: 0 4px 14px rgba(123,45,142,0.3);
}

.btn-primary:hover {
    background: var(--plum-dark);
    border-color: var(--plum-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123,45,142,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--plum);
    border-color: var(--plum);
}

.btn-outline:hover {
    background: var(--plum-bg);
    color: var(--plum-dark);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--plum);
    border-color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--plum-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* Hero visual */
.hero-visual { position: relative; }

.hero-main-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.hero-main-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.hero-main-card-caption {
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 4s ease-in-out infinite;
    z-index: 2;
}

.float-card-1 {
    top: -20px;
    left: -30px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 80px;
    left: -40px;
    animation-delay: 1.3s;
}

.float-card-3 {
    bottom: -20px;
    right: -20px;
    animation-delay: 2.6s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--plum-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--plum);
}

.float-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--plum);
    line-height: 1.2;
}

.float-label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
}

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

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    background: var(--plum-bg);
    color: var(--plum);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ========== CENTRO ========== */
.centro { background: var(--gray-50); }

.centro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.centro-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.centro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.centro-card-img {
    overflow: hidden;
    height: 200px;
}

.centro-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.centro-card:hover .centro-card-img img { transform: scale(1.05); }

.centro-card-body { padding: 24px; }

.centro-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--plum-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.centro-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.centro-card-body p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== ETAPAS ========== */
.etapas { background: var(--white); }

.etapas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.etapa-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(123,45,142,0.08);
    transition: all var(--transition);
}

.etapa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.etapa-card-badge {
    display: inline-block;
    background: var(--plum);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin: 24px 0 0 24px;
}

.etapa-card-visual { overflow: hidden; height: 220px; }

.etapa-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.etapa-card:hover .etapa-card-visual img { transform: scale(1.05); }

.etapa-card-body { padding: 24px; }

.etapa-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--plum);
}

.etapa-card-body > p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.etapa-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.etapa-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}

/* ========== VALORES ========== */
.valores { background: linear-gradient(135deg, var(--plum-bg) 0%, var(--amber-bg) 100%); }

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.valor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.valor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(123,45,142,0.12);
}

.valor-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--plum-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.valor-card:hover .valor-icon {
    background: var(--plum);
}

.valor-card:hover .valor-icon svg { stroke: var(--white); }

.valor-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.valor-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--amber);
    border-radius: 50%;
    opacity: 0.08;
    top: -150px;
    right: -100px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--amber-light);
    border-radius: 50%;
    opacity: 0.06;
    bottom: -80px;
    left: -50px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--white);
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    line-height: 1.7;
}

.cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* ========== CONTACTO ========== */
.contacto { background: var(--gray-50); }

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contacto-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.contacto-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contacto-item-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--plum-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.contacto-item a,
.contacto-item span {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contacto-item a:hover { color: var(--plum); }

/* Form */
.contacto-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contacto-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--plum), var(--amber));
}

.contacto-form h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(123,45,142,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-privacy {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 16px;
    text-align: center;
    line-height: 1.5;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show { display: block; }

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--plum-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 1.4rem;
    color: var(--plum);
    margin-bottom: 10px;
}

.form-success p { color: var(--gray-600); font-size: 0.95rem; }

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--amber); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-contact a { color: var(--gray-400); }
.footer-contact a:hover { color: var(--amber); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p { font-size: 0.82rem; color: var(--gray-500); }

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
    .nav-logo-text { display: block; }
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 520px; }
    .centro-grid { grid-template-columns: repeat(2, 1fr); }
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle { display: flex; }

    .hero { min-height: auto; padding-top: 100px; padding-bottom: 40px; }
    .hero-container { padding: 0 24px 40px; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }

    .float-card-1 { left: 0; }
    .float-card-2 { left: 0; }
    .float-card-3 { right: 0; }

    .section { padding: 70px 0; }
    .centro-grid { grid-template-columns: 1fr; }
    .etapas-grid { grid-template-columns: 1fr; }
    .valores-grid { grid-template-columns: 1fr; }

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }

    .contacto-layout { grid-template-columns: 1fr; gap: 40px; }
    .contacto-form-wrap { padding: 28px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .hero-float-card { display: none; }
    .hero-main-card img { height: 260px; }
}

/* ========== ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
