@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    /* Navy Blue oscuro */
    --secondary-color: #d4af37;
    /* Dorado / Bronce */
    --text-color: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Menú Móvil Hamburguesa */
.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Utils */
.section-padding {
    padding: 80px 5%;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 40px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Hero Carousel */
.hero-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-bg,
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.4);
    transform: scale(1.1);
    /* Prevent blurred edges from leaking */
    z-index: -1;
}

.hero-img {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    list-style: none;
}

.hero-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}


/* Layout 2 Columnas */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Cards de "Qué hacemos" */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary-color);
}

.service-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Stats */
.stats-section {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    color: var(--secondary-color);
    font-size: 48px;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* YouTube Carousel */
.youtube-carousel {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: #000;
}

.youtube-carousel iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yt-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.yt-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.yt-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Nosotros y Equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.team-member {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    aspect-ratio: 1;
    /* Forzar cuadrado */
}

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

.team-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 20px;
    text-align: center;
    transition: bottom 0.4s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-member:hover .team-info {
    bottom: 0;
}

.team-info h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

/* Contacto y Formularios */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer p,
.footer a {
    color: #cbd5e1;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.logos-alianzas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;

    img {
        max-width: 100%;
        height: auto;
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-touch-callout: none;
    }

    .logos-alianzas img {
        height: 50px;
        padding: 5px;
        border-radius: 4px;
    }
}

/* Footer Socials */
.social-links {
    display: flex;
    gap: 15px;
    font-size: 20px;
    margin-bottom: 5px;
}

.social-links a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}