/* ==================== RESET Y VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary-color: #f0a463;
    --primary-dark: #d48a4a;
    --secondary-color: #0F3D3E;
    --accent-color: #E8C4A0;
    
    /* Colores de fondo */
    --bg-dark: #0A1612;
    --bg-darker: #050B09;
    --bg-overlay: rgba(10, 22, 18, 0.95);
    --bg-card: rgba(26, 42, 36, 0.6);
    --bg-card-hover: rgba(26, 42, 36, 0.9);
    
    /* Colores de texto */
    --text-light: #FFFFFF;
    --text-gray: #B8C5C0;
    --text-dark: #1A2A24;
    
    /* Tipografía */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

/* ==================== BASE ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(240, 164, 99, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(15, 61, 62, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 22, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 11, 9, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
    animation: floatLogo 3s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(10, 22, 18, 0.85) 0%, rgba(15, 61, 62, 0.85) 100%),
        url('../assets/hero2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 18, 0.3);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(240, 164, 99, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(240, 164, 99, 0.05) 0%, transparent 30%);
    z-index: 1;
}

/* Elementos decorativos - puntos */
.hero-overlay::before,
.hero-overlay::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(240, 164, 99, 0.3);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.hero-overlay::before {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.hero-overlay::after {
    bottom: 30%;
    right: 20%;
    width: 12px;
    height: 12px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

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

.hero-logo-container {
    margin-bottom: 1rem;
    animation: buildLogo 2s ease-in-out forwards, floatLogo 3s ease-in-out 2s infinite;
}

@keyframes buildLogo {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-main-logo {
    max-width: 800px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(240, 164, 99, 0.3));
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero-title .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(240, 164, 99, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 1rem;
    color: var(--accent-color);
}

/* ==================== SECTIONS ==================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ==================== FEATURED TEXT ==================== */
.featured-text,
.featured-text-alt {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background: rgba(26, 42, 36, 0.3);
    border-top: 1px solid rgba(240, 164, 99, 0.2);
    border-bottom: 1px solid rgba(240, 164, 99, 0.2);
}

.featured-quote {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    max-width: 900px;
    margin: 0 auto;
}

/* ==================== SERVICES ==================== */
.services {
    background: rgba(5, 11, 9, 0.5);
}

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(240, 164, 99, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(240, 164, 99, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-icon-img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 0;
    mix-blend-mode: lighten;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.mt-4 {
    margin-top: 3rem;
}

/* ==================== PROFILE ==================== */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

.profile-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.profile-image {
    position: relative;
}

.profile-video-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(240, 164, 99, 0.2);
    background: var(--bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.profile-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(240, 164, 99, 0.2);
    overflow: hidden;
}

.image-placeholder img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(240, 164, 99, 0.3));
}

/* ==================== RECONOCIMIENTOS ==================== */
.reconocimientos {
    text-align: center;
    background: rgba(5, 11, 9, 0.5);
}

.reconocimientos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reconocimiento-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(240, 164, 99, 0.1);
    transition: var(--transition);
}

.reconocimiento-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(240, 164, 99, 0.2);
}

.reconocimiento-year {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.reconocimiento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.reconocimiento-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
    background: linear-gradient(135deg, rgba(240, 164, 99, 0.1) 0%, rgba(15, 61, 62, 0.2) 100%);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ==================== TESTIMONIOS ==================== */
.testimonios {
    text-align: center;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonio-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(240, 164, 99, 0.1);
    text-align: left;
    transition: var(--transition);
}

.testimonio-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(240, 164, 99, 0.2);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stars {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonio-text {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonio-author {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonio-context {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonio-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.testimonio-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ==================== CONTACT CTA ==================== */
.contact-cta {
    text-align: center;
    background: rgba(5, 11, 9, 0.5);
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== MEDIOS ==================== */
.medios {
    text-align: center;
}

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

.medio-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(240, 164, 99, 0.1);
    transition: var(--transition);
    text-align: left;
}

.medio-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(240, 164, 99, 0.2);
}

.medio-image {
    width: 100%;
    height: 541px;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.medio-image img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: var(--transition);
}

.medio-image-zoom {
    height: 148% !important;
}

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

.medio-video {
    width: 100%;
    height: 541px;
    background: var(--bg-darker);
    overflow: hidden;
    position: relative;
}

.medio-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.medio-card-video {
    display: flex;
    flex-direction: column;
}

.medio-content {
    padding: 2rem;
}

.medio-content h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.medio-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.medio-content .btn-modal {
    display: block;
    margin-bottom: 0.8rem;
}

.medio-source {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== CONTACT ==================== */
.contact {
    background: rgba(5, 11, 9, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
}

.contact-item h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(240, 164, 99, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 22, 18, 0.5);
    border: 1px solid rgba(240, 164, 99, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 164, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-darker);
    padding: 5rem 0 2rem;
    border-top: 2px solid rgba(240, 164, 99, 0.3);
}

.footer-top {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-map {
    margin-bottom: 3rem;
    border: 2px solid rgba(240, 164, 99, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.footer-logo-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-logo-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(240, 164, 99, 0.3));
    animation: buildLogo 2s ease-in-out forwards, floatLogo 3s ease-in-out 2s infinite;
}

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

.footer-section h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer-section h3 i {
    margin-right: 0.5rem;
}

.footer-section p {
    color: var(--text-gray);
    font-size: 1.2rem;
    line-height: 1.8;
}

.footer-contact-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: var(--primary-color);
}

.footer-social {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-social h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-links a {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(240, 164, 99, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(240, 164, 99, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(240, 164, 99, 0.1);
    color: var(--text-gray);
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #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.2);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
    text-decoration: none;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    background: #128C7E;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        right: 20px !important;
        bottom: 30px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 11, 9, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-main-logo {
        max-width: 550px;
    }
}

@media (max-width: 480px) {
    .hero-main-logo {
        max-width: 320px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .reconocimientos-grid {
        grid-template-columns: 1fr;
    }
    
    .medios-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ==================== MODALES ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid rgba(240, 164, 99, 0.2);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 1;
    line-height: 1;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.modal-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.modal-img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.modal-img-center {
    object-position: center center;
}

.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.modal-body p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-body .medio-source {
    display: inline-block;
    margin-top: 1rem;
}

.btn-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(240, 164, 99, 0.3);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }

    .modal {
        max-height: 90vh;
    }

    .modal-img {
        height: 350px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h2 {
        font-size: 1.3rem;
    }
}
