:root {
    /* Color Palette */
    --color-primary: #301633; /* Deep Plum */
    --color-secondary: #4a2150; /* Plum Purple */
    --color-accent: #d4af37; /* Gold */
    --color-accent-hover: #c9a227; /* Dark Gold */
    
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.page-content {
    /* removed padding-top to avoid white stripe */
}

.page-content > section:first-child {
    padding-top: 160px; /* Space for fixed navbar + normal section padding */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--color-text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.solid-nav {
    background: var(--color-primary);
    box-shadow: var(--shadow-sm);
    padding: 1rem 5%;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 5%;
}

.navbar.scrolled .logo,
.navbar.scrolled nav ul li a {
    color: var(--color-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition-normal);
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
}

.navbar .logo-img {
    height: 88px;
    width: auto;
    border-radius: 12px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--color-white);
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-normal);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(48, 22, 51, 0.7), rgba(48, 22, 51, 0.7));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    color: var(--color-white);
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Services */
.services {
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

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

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

.service-info {
    padding: 2rem;
    position: relative;
}

.icon-wrapper {
    position: absolute;
    top: -25px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.service-info h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Locations */
.locations {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.03) 0%, rgba(76, 29, 149, 0.05) 100%);
}

.locations-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.locations-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.locations-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.locations-list i {
    color: var(--color-secondary);
    margin-top: 0.2rem;
}

.locations-list strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.locations-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.locations-image img {
    width: 100%;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Alliances */
.alliances {
    background-color: var(--color-white);
}

.alliances-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.alliance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--color-bg);
    border-radius: 1rem;
    width: 200px;
    transition: all var(--transition-normal);
}

.alliance-item:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

.alliance-item i {
    width: 48px;
    height: 48px;
    color: inherit;
}

/* Contact */
.contact {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
}

.contact .section-header h2,
.contact .section-header p,
.contact h2 {
    color: var(--color-white);
}

.contact p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 4rem;
    background: linear-gradient(135deg, rgba(48,22,51,0.95), rgba(74,33,80,0.95)), url('assets/images/hero.webp') center/cover;
    color: var(--color-white);
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.contact-method i {
    color: var(--color-accent);
    width: 32px;
    height: 32px;
}

.contact-method h4 {
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.contact-form {
    padding: 4rem;
    color: var(--color-text-main);
    background-color: var(--color-white);
}

.contact-form h3 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(48, 22, 51, 0.3);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(48, 22, 51, 0.12);
}

/* Footer */
footer {
    background-color: #170a18;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}
.footer-brand .logo-img {
    height: 72px;
    width: auto;
    border-radius: 10px;
}
.footer-brand p {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-normal);
}
.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}
.footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    background-color: #0c050d;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helper classes */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.subtitle { font-size: 0.875rem; letter-spacing: 2px; text-transform: uppercase; }

/* Section: About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-images { position: relative; height: 500px; }
.about-images .img-back { position: absolute; top: 0; left: 0; width: 70%; height: 80%; object-fit: cover; border-radius: 1rem; }
.about-images .img-front { position: absolute; bottom: 0; right: 0; width: 60%; height: 70%; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow-lg); border: 8px solid var(--color-bg); }
.about-experience { position: absolute; bottom: -2rem; left: 2rem; background: var(--color-accent); padding: 1.5rem; border-radius: 1rem; box-shadow: var(--shadow-md); text-align: center; z-index: 2; }
.about-stats { margin: 2rem 0; display: flex; gap: 2rem; }
.about-small-img { width: 150px; height: 100px; object-fit: cover; border-radius: 0.5rem; }

/* Section: Tributes */
.section-tributes { background-color: var(--color-primary); color: var(--color-white); }
.section-tributes .section-header h2 { color: var(--color-white); }
.tributes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.tribute-card { background: var(--color-white); color: var(--color-text-main); padding: 2rem; border-radius: 1rem; text-align: center; }
.tribute-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem auto; border-radius: 50%; overflow: hidden; border: 4px solid var(--color-accent); }
.tribute-icon img { width: 100%; height: 100%; object-fit: cover; }
.tribute-card h3 { color: var(--color-primary); }
.tribute-card .date { color: var(--color-text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Services Header */
.services-overview { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; }
.services-header-side { flex: 1; }
.services-header-text { flex: 1; text-align: right; }

/* Section: Quote */
.section-quote { background: var(--color-primary); display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; padding: 0; min-height: 400px; }
.quote-image { flex: 1; height: 400px; }
.quote-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; mix-blend-mode: overlay; }
.quote-content { flex: 2; padding: 4rem 2rem; z-index: 2; }

/* Section: Plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; align-items: center; }
.plan-card { background: var(--color-white); border-radius: 1rem; padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); transition: transform var(--transition-normal); }
.plan-card:hover { transform: translateY(-10px); }
.plan-card.highlighted { background: var(--color-primary); color: var(--color-white); transform: scale(1.05); box-shadow: var(--shadow-lg); border: none; }
.plan-card.highlighted:hover { transform: scale(1.05) translateY(-10px); }
.plan-card.highlighted h3 { color: var(--color-white); }
.plan-desc { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.plan-card hr { border: none; border-top: 1px solid #e2e8f0; margin-bottom: 1.5rem; }
.plan-features { text-align: left; margin-bottom: 2rem; }
.plan-features li { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.plan-features .check { color: var(--color-primary); width: 20px; height: 20px; flex-shrink: 0; }

/* CTA Contacto */
.section-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    text-align: center;
}
.section-cta h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}
.section-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.section-cta .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-white);
    z-index: 1001;
    transition: color var(--transition-normal);
}
.hamburger svg {
    width: 32px;
    height: 32px;
    display: block;
}
.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.navbar.scrolled .hamburger .bar {
    background-color: var(--color-primary);
}
.navbar--menu-open .hamburger .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar--menu-open .hamburger .bar:nth-child(2) {
    opacity: 0;
}
.navbar--menu-open .hamburger .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.navbar.scrolled .hamburger {
    color: var(--color-primary);
}

/* Navbar auto-hide on scroll */
.navbar--hidden {
    transform: translateY(-100%);
}

/* Responsive */
@media (max-width: 900px) {
    .plans-grid { grid-template-columns: 1fr; }
    .plan-card.highlighted { transform: none; }
    .plan-card.highlighted:hover { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 1rem 5%;
        background: transparent;
    }
    .navbar.solid-nav {
        background: var(--color-primary);
    }
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
    }
    .hamburger {
        display: block;
    }
    .navbar nav,
    .navbar > .btn {
        display: none;
    }
    .navbar--menu-open nav,
    .navbar--menu-open > .btn {
        display: flex;
    }
    .navbar--menu-open nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    .navbar--menu-open nav ul {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    .navbar--menu-open nav ul li a {
        font-size: 1.5rem;
        color: var(--color-white);
    }
    .navbar--menu-open nav ul li a::after {
        bottom: -8px;
    }
    .navbar--menu-open > .btn {
        position: fixed;
        bottom: 4rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .locations-content,
    .contact-card,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .experience-badge {
        bottom: auto;
        top: 1rem;
        left: 1rem;
    }
    .contact-info, .contact-form {
        padding: 2rem;
    }
    .about-grid { grid-template-columns: 1fr; }
    .about-images { height: 350px; }
    .services-overview { flex-direction: column; text-align: center; align-items: center; }
    .services-header-text { text-align: center; }
    .section-quote { flex-direction: column; padding: 4rem 1rem; min-height: auto; }
    .quote-image { display: none; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.2);
}
.whatsapp-float i { width: 30px; height: 30px; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}
.back-to-top i { width: 24px; height: 24px; }

@media (max-width: 768px) {
    .whatsapp-float { width: 54px; height: 54px; bottom: 1.25rem; right: 1.25rem; }
    .back-to-top { width: 44px; height: 44px; bottom: 1.25rem; left: 1.25rem; }
}

/* Advisor Banner */
.advisor-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}
.advisor-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.advisor-avatar i { width: 30px; height: 30px; }
.advisor-text { flex: 1; }
.advisor-text h3 { color: var(--color-white); margin-bottom: 0.25rem; }
.advisor-text p { color: rgba(255, 255, 255, 0.85); }
.advisor-banner .btn { flex-shrink: 0; }

.service-cta { margin-top: 1.5rem; }

/* Sedes Gallery */
.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.sede-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.sede-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.sede-image { height: 200px; overflow: hidden; }
.sede-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sede-card:hover .sede-image img { transform: scale(1.05); }
.sede-body { padding: 2rem; }
.sede-body h3 { color: var(--color-primary); margin-bottom: 0.75rem; }
.sede-dir { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.sede-dir i { color: var(--color-secondary); width: 18px; height: 18px; margin-top: 0.2rem; flex-shrink: 0; }
.sede-servicios { margin-bottom: 1.5rem; }
.sede-servicios li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: var(--color-text-main); }
.sede-servicios i { color: var(--color-accent); width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 768px) {
    .advisor-banner { flex-direction: column; text-align: center; }
}
