/* Custom properties base on branding */
:root {
    --bg-dark: #15181E; /* Azul noche/Gris carbón */
    --gold-light: #F3D883; /* Dorado Claro */
    --gold-main: #DEBF6B; /* Dorado Principal */
    --gold-dark: #A67B1D; /* Dorado Oscuro */
    
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(222, 191, 107, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-main: 'Outfit', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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 {
    font-weight: 600;
    line-height: 1.2;
}

h1 span, h2 span {
    color: var(--gold-main);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--gold-main), transparent);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(222, 191, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 191, 107, 0.4);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
}

.btn-outline {
    background: transparent;
    border-color: var(--gold-main);
    color: var(--gold-main);
}

.btn-outline:hover {
    background: rgba(222, 191, 107, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(21, 24, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-eagle {
    animation: flyFlap 5s infinite;
}

@keyframes flyFlap {
    0%   { transform: rotateY(0deg) scale(1); }
    3%   { transform: rotateY(70deg) scale(1.05); }
    6%   { transform: rotateY(0deg) scale(1); }
    9%   { transform: rotateY(70deg) scale(1.05); }
    12%  { transform: rotateY(0deg) scale(1); }
    100% { transform: rotateY(0deg) scale(1); }
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 400;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-main);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-light);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--gold-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 0 4rem 0; /* Previene superposición con el navbar */
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../hero_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(21, 24, 30, 0.95) 0%, rgba(21, 24, 30, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    max-width: 600px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    filter: drop-shadow(0 0 25px rgba(222, 191, 107, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Sections General */
.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(21, 24, 30, 0.7);
    border: 2px solid var(--gold-main);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(222, 191, 107, 0.15);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(222, 191, 107, 0.25);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold-main);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    color: var(--text-muted);
}

/* Services Interactive */
.services-interactive {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(21, 24, 30, 0.7);
    border: 2px solid var(--gold-main);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(222, 191, 107, 0.15);
}

@media (min-width: 992px) {
    .services-interactive {
        flex-direction: row;
        padding: 0;
        overflow: hidden;
    }
}

.services-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
    .services-menu {
        padding: 2rem;
        border-right: 1px solid var(--card-border);
    }
}

.service-tab {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.7rem 1.5rem; /* Reducido verticalmente */
    color: var(--text-muted);
    font-size: 1rem;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid transparent;
}

.service-tab i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.service-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.service-tab.active {
    background: linear-gradient(135deg, rgba(222, 191, 107, 0.1), transparent);
    color: var(--gold-main);
    border-color: rgba(222, 191, 107, 0.3);
    box-shadow: inset 3px 0 0 var(--gold-main);
}

.services-content-wrapper {
    flex: 2;
    position: relative;
    padding: 1rem;
}

@media (min-width: 992px) {
    .services-content-wrapper {
        padding: 3rem;
    }
}

.service-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeSlideUp 0.4s ease forwards;
}

.service-content.active {
    display: block;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header {
    margin-bottom: 1.2rem; /* Reducido */
}

.content-header i {
    font-size: 2rem; /* Reducido */
    color: var(--gold-main);
    margin-bottom: 1rem; /* Reducido */
    background: rgba(222, 191, 107, 0.1);
    width: 60px; /* Reducido */
    height: 60px; /* Reducido */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-header h3 {
    font-size: 1.5rem; /* Reducido */
    color: var(--text-light);
}

.service-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-features li i {
    color: var(--gold-main);
    margin-top: 4px;
    font-size: 1rem;
}

/* Team */
.team-grid {
    display: flex; /* Cambiado a flex para permitir scroll horizontal */
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 2rem; /* Espacio para la barra de desplazamiento */
    /* Personalizar barra de desplazamiento */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-main) rgba(255,255,255,0.05);
}

.team-grid::-webkit-scrollbar {
    height: 8px;
}
.team-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.team-grid::-webkit-scrollbar-thumb {
    background: var(--gold-main);
    border-radius: 10px;
}

.team-grid.leaders .team-member {
    padding: 1.5rem 1rem;
}

.team-grid.leaders .member-image-wrapper {
    width: 110px;
    height: 110px;
}

.team-grid.leaders .member-info h3 {
    font-size: 1.4rem;
}

.team-member {
    flex: 0 0 260px; /* Tamaño fijo para scroll horizontal */
    background: rgba(21, 24, 30, 0.7);
    border: 2px solid var(--gold-main);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(222, 191, 107, 0.15);
    overflow: hidden;
    position: relative;
}



.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(222, 191, 107, 0.25);
}

.member-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    position: relative;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.2rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(10, 102, 194, 0.1);
    color: #0A66C2;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.linkedin-link:hover {
    background: #0A66C2;
    color: white;
}

.member-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.role {
    display: inline-block;
    color: var(--gold-main);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.member-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: rgba(21, 24, 30, 0.7);
    border: 2px solid var(--gold-main);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(222, 191, 107, 0.15);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(222, 191, 107, 0.25);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(222, 191, 107, 0.1);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.testimonial-media {
    width: 100%;
    height: 180px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px dashed rgba(255,255,255,0.1);
    overflow: hidden;
}

.testimonial-media img, .testimonial-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.author-info h4 {
    color: var(--gold-main);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-list i {
    width: 40px;
    height: 40px;
    background: rgba(222, 191, 107, 0.1);
    color: var(--gold-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-list strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.info-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form {
    background: rgba(21, 24, 30, 0.7);
    border: 2px solid var(--gold-main);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(222, 191, 107, 0.15);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-main);
    background: rgba(0, 0, 0, 0.4);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold-main);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #0a0c10;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col .logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-main);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--gold-main);
    padding-left: 5px;
}

.footer-contact-info li {
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-info li i {
    color: var(--gold-main);
    margin-top: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--gold-main);
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(21, 24, 30, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    /* Hero Mobile Fixes */
    .hero {
        align-items: flex-start; /* Evita que el contenido crezca hacia arriba y se coma el menú */
        padding-top: 150px;
    }
    
    .hero-text {
        display: contents; /* Deshace el contenedor para poder reordenar los elementos hijos libremente */
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero h1 {
        order: 1;
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        order: 2;
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    .hero-image {
        order: 3; /* El escudo va después del texto (p) */
        margin-bottom: 1rem;
    }
    
    .hero-image img {
        max-height: 220px;
    }
    
    .hero-buttons {
        order: 4; /* Los botones van al final */
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    
    .section {
        padding: 4rem 0;
    }
}

/* Reels / Educacion Section */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reels-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.reel-card {
    background: rgba(21, 24, 30, 0.7);
    border: 2px solid var(--gold-main); /* Recuadro */
    border-radius: 12px;
    padding: 12px; /* Margen interior para que actúe como marco */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(222, 191, 107, 0.15);
    display: flex;
    flex-direction: column;
}

.reel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(222, 191, 107, 0.25);
}

.reel-card video,
.reel-card iframe {
    width: 100%;
    aspect-ratio: 9/16;
    border: none;
    border-radius: 8px;
    background-color: #050505;
    outline: none;
}

.reel-info {
    padding: 1.2rem 0.5rem 0.5rem;
    text-align: center;
}

.reel-info h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Global Pop-up */
.global-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.global-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.global-popup-card {
    background: var(--card-bg);
    border: 2px solid var(--gold-main);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(222, 191, 107, 0.15);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.global-popup-overlay.active .global-popup-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close-btn:hover {
    color: var(--gold-main);
    transform: rotate(90deg);
}

.popup-icon {
    font-size: 3.5rem;
    color: var(--gold-main);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite ease-in-out;
}

.popup-content h3 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.popup-content h3 span {
    color: var(--gold-main);
}

.popup-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.popup-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(222, 191, 107, 0.4);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(222, 191, 107, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(222, 191, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(222, 191, 107, 0); }
}

/* Service Image Layout */
#servicios {
    padding: 3rem 0 1rem 0; /* Menos espacio vertical exterior */
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Reducido */
    align-items: stretch; /* Cambio: permitir que los elementos se estiren al 100% de la altura */
}

@media (min-width: 768px) {
    .service-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.service-image {
    width: 100%;
    height: 100%; /* Cambio: ocupar todo el alto de la celda del grid */
    min-height: 250px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 2px solid rgba(222, 191, 107, 0.2);
    object-fit: cover;
    transition: var(--transition);
}

.service-content.active .service-image {
    animation: fade-in-scale 0.5s ease-out forwards;
}

@keyframes fade-in-scale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    /* Responsive Logo */
    .logo-img[src*="logo_text"] {
        height: 28px !important; 
    }
    .logo-eagle {
        height: 35px !important;
    }
    
    /* Horizontal scroll for services tabs on mobile */
    .services-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem 0;
        gap: 0.8rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .services-menu::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .service-tab {
        white-space: nowrap;
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(222, 191, 107, 0.2);
    }
    .service-tab.active {
        background: rgba(222, 191, 107, 0.15);
    }
    
    /* Global Popup on Mobile */
    .global-popup-card {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    .popup-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .popup-content h3 {
        font-size: 1.4rem;
    }
    .popup-content p {
        font-size: 0.95rem;
    }
    
    /* Reels Grid spacing */
    .reels-grid {
        gap: 1.5rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(21, 24, 30, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--gold-main);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.cookie-text a {
    color: var(--gold-main);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* About Us Grid (Homepage) */
.about-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

@media (min-width: 992px) {
    .about-us-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about-us-text {
    text-align: left;
}

.about-us-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.9;
    margin: 0;
}

.about-us-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    padding: 12px;
    border: 2px solid var(--gold-main);
    border-radius: 12px;
    background: rgba(21, 24, 30, 0.7);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(222, 191, 107, 0.15);
    transition: transform 0.3s ease;
}

.image-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(222, 191, 107, 0.25);
}

.image-frame img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    filter: brightness(0.9) contrast(1.1);
}

@media (max-width: 768px) {
    .about-us-grid {
        text-align: center;
    }
    .about-us-text {
        text-align: center;
    }
}
