/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    color: #1B2330;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #4A90E2;
    margin: 1rem auto;
    border-radius: 2px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease !important;
    transform: translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h3 {
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3182ce;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-acento), var(--color-azul-mediano));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1a365d;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-degradado-inicio) 0%, var(--color-degradado-fin) 100%);
    color: var(--color-blanco);
    padding: 120px 0 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 120px !important;
    margin-top: 0 !important;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--color-blanco);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.4;
    color: var(--color-texto-claro);
}

.hero-quote {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    color: var(--color-texto-claro);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-blanco);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-borde);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-medium);
}

.cta-button:hover::before {
    left: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-medium);
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-photo:hover {
    transform: scale(var(--scale-hover)) rotate(var(--rotate-hover));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-placeholder i {
    font-size: 120px;
    opacity: 0.7;
}

/* About Section */
.about {
    padding: 120px 0 120px 0;
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.85)), url('assets/clubes-fer.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 2;
    color: white;
}

/* Only apply fixed background on larger screens */
@media (min-width: 769px) {
    .about {
        background-attachment: fixed;
    }
}

@media screen and (max-width: 768px) {
    .about {
        padding: 80px 0 100px 0;
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .about {
        padding: 60px 0 80px 0;
        background-size: cover;
        background-position: center;
    }
}

.about .section-title {
    color: var(--color-blanco);
}

.about .section-title::after {
    background: linear-gradient(90deg, #63b3ed, #ffffff);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-blanco);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--color-azul-suave);
    font-weight: 600;
}

.experience-highlights {
    background: var(--color-fondo-card);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--color-acento);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.experience-highlights h3 {
    color: var(--color-azul-oscuro);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.experience-list {
    list-style: none;
    margin-bottom: 1rem;
}

.experience-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--color-gris-oscuro);
    padding: 0.5rem 0;
}

.experience-list li:last-child {
    margin-bottom: 0;
}

.experience-list i {
    color: var(--color-acento);
    font-size: 1.2rem;
    width: 20px;
}

/* Education Section */
.education {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 1;
}

.education .section-title {
    color: var(--color-azul-oscuro);
    margin-top: 0;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.2;
    position: static;
    top: auto;
}

.education .section-title::after {
    background: linear-gradient(90deg, var(--color-azul-mediano), var(--color-acento));
}

.education .container {
    padding-top: 2rem;
    padding-bottom: 0;
}

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.education-column,
.certifications-column {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-acento);
    position: relative;
    overflow: hidden;
}

.education-column::before,
.certifications-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-acento), var(--color-azul-mediano));
    border-radius: 20px 20px 0 0;
}

.education-header {
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-azul-suave);
}

.education-header h3 {
    color: var(--color-azul-oscuro);
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.education-header i {
    color: var(--color-acento);
    font-size: 1.6rem;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--color-azul-suave);
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--color-acento);
}

.education-icon {
    background: var(--color-acento);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.education-details h4 {
    color: var(--color-azul-oscuro);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.education-institution {
    color: var(--color-gris-oscuro);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-institution i {
    color: var(--color-acento);
    font-size: 0.8rem;
}

.education-year {
    background: var(--color-acento);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--color-azul-suave);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: default;
    margin-bottom: 6px;
}

.certification-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--color-acento);
}

.certification-item i {
    color: var(--color-acento);
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.certification-item span {
    color: var(--color-gris-oscuro);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive Design for Education Section */
@media screen and (max-width: 768px) {
    .education {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 3rem 0;
    }
    
    .education .container {
        padding: 1.5rem 15px 0;
    }
    
    .education .section-title {
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 2.5rem;
        padding: 0 10px;
        text-align: center;
        color: var(--color-azul-oscuro);
        font-weight: 600;
        position: static;
        top: auto;
    }
    
    .education-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .education-column,
    .certifications-column {
        padding: 2rem;
    }
    
    .education-header h3 {
        font-size: 1.2rem;
    }
    
    .education-item {
        padding: 1.2rem;
    }
    
    .education-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .education-details h4 {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .education {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 2.5rem 0;
    }
    
    .education .container {
        padding: 1rem 10px 0;
    }
    
    .education .section-title {
        font-size: 1.7rem;
        margin-top: 0;
        margin-bottom: 2rem;
        padding: 0 5px;
        line-height: 1.3;
        text-align: center;
        color: var(--color-azul-oscuro);
        font-weight: 600;
        display: block;
        width: 100%;
        box-sizing: border-box;
        position: static;
        top: auto;
    }
    
    .education .section-title::after {
        display: block;
        margin: 1rem auto;
        width: 50px;
        height: 3px;
    }
    
    .education-content {
        gap: 2rem;
    }
    
    .education-column,
    .certifications-column {
        padding: 1.5rem;
        border-radius: 15px;
        margin: 0;
    }
    
    .education-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .education-header h3 {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .education-header i {
        font-size: 1.3rem;
    }
    
    .education-item {
        padding: 1rem;
        gap: 1rem;
        border-radius: 12px;
    }
    
    .education-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .education-details {
        width: 100%;
        min-width: 0;
    }
    
    .education-details h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }
    
    .education-institution {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .education-institution i {
        font-size: 0.75rem;
    }
    
    .education-year {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        margin-top: 0.4rem;
    }
    
    .certification-item {
        padding: 0.9rem 1rem;
        gap: 0.8rem;
        border-radius: 10px;
    }
    
    .certification-item i {
        font-size: 1rem;
        width: 18px;
    }
    
    .certification-item span {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .certification-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Media query específica para iPhone 12 Pro y dispositivos similares */
@media screen and (max-width: 428px) {
    .education {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 2rem 0;
    }
    
    .education .container {
        padding: 1rem 8px 0;
    }
    
    .education .section-title {
        font-size: 1.6rem;
        margin-top: 0;
        margin-bottom: 1.8rem;
        padding: 0 5px;
        line-height: 1.3;
        text-align: center;
        color: var(--color-azul-oscuro);
        font-weight: 600;
        display: block;
        width: 100%;
        box-sizing: border-box;
        position: static;
        top: auto;
    }
    
    .education .section-title::after {
        display: block;
        margin: 0.8rem auto;
        width: 45px;
        height: 3px;
        background: linear-gradient(90deg, var(--color-azul-mediano), var(--color-acento));
    }
    
    .education-content {
        gap: 1.8rem;
        margin-top: 1.5rem;
    }
    
    .education-column,
    .certifications-column {
        padding: 1.2rem;
        margin: 0;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }
    
    .education-header {
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }
    
    .education-header h3 {
        font-size: 1rem;
        flex-direction: row;
        gap: 0.4rem;
        align-items: center;
    }
    
    .education-header i {
        font-size: 1.2rem;
    }
    
    .education-item {
        padding: 0.9rem;
        gap: 0.9rem;
    }
    
    .education-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .education-details {
        flex: 1;
        min-width: 0;
    }
    
    .education-details h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .education-institution {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        word-wrap: break-word;
    }
    
    .education-year {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .certification-item {
        padding: 0.8rem 0.9rem;
        gap: 0.7rem;
    }
    
    .certification-item i {
        font-size: 0.9rem;
        width: 16px;
        flex-shrink: 0;
    }
    
    .certification-item span {
        font-size: 0.85rem;
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* Media query para pantallas muy pequeñas (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
    .education {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 1.5rem 0;
    }
    
    .education .container {
        padding: 0.8rem 0.2rem 0;
    }
    
    .education .section-title {
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
        padding: 0 5px;
        line-height: 1.3;
        text-align: center;
        color: var(--color-azul-oscuro);
        font-weight: 600;
        position: static;
        top: auto;
    }
    
    .education .section-title::after {
        width: 40px;
        height: 3px;
        margin: 0.6rem auto;
    }
    
    .education-content {
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .education-column,
    .certifications-column {
        padding: 1rem;
        margin: 0 0.2rem;
    }
    
    .education-header h3 {
        font-size: 0.95rem;
    }
    
    .education-item {
        padding: 0.8rem;
    }
    
    .education-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .education-details h4 {
        font-size: 0.85rem;
    }
    
    .education-institution {
        font-size: 0.75rem;
    }
    
    .certification-item {
        padding: 0.7rem 0.8rem;
    }
    
    .certification-item span {
        font-size: 0.8rem;
    }
}

/* Animation delays for education section */
.education-item:nth-child(1) { transition-delay: 0.1s; }
.education-item:nth-child(2) { transition-delay: 0.2s; }
.education-item:nth-child(3) { transition-delay: 0.3s; }
.education-item:nth-child(4) { transition-delay: 0.4s; }

.certification-item:nth-child(1) { transition-delay: 0.1s; }
.certification-item:nth-child(2) { transition-delay: 0.15s; }
.certification-item:nth-child(3) { transition-delay: 0.2s; }
.certification-item:nth-child(4) { transition-delay: 0.25s; }
.certification-item:nth-child(5) { transition-delay: 0.3s; }
.certification-item:nth-child(6) { transition-delay: 0.35s; }
.certification-item:nth-child(7) { transition-delay: 0.4s; }
.certification-item:nth-child(8) { transition-delay: 0.45s; }
.certification-item:nth-child(9) { transition-delay: 0.5s; }
.certification-item:nth-child(10) { transition-delay: 0.55s; }

/* Variables globales */
:root {
    /* Colores principales */
    --color-azul-oscuro: #1B2330;
    --color-azul-mediano: #4A90E2;
    --color-azul-suave: #EEF4FC;
    --color-fondo-card: #F8F9FA;
    --color-gris-oscuro: #4A4A4A;
    --color-blanco: #FFFFFF;
    --color-degradado-inicio: #1f2a47;
    --color-degradado-fin: #273354;
    --color-acento: #3182ce;
    --color-texto-claro: rgba(255, 255, 255, 0.9);
    --color-sombra: rgba(0, 0, 0, 0.1);
    --color-borde: rgba(255, 255, 255, 0.2);
    --color-exito: #D4F5DD;
    --color-exito-texto: #317D3C;
    --color-badge: #E2E8F0;
    --color-hover: #1A73E8;

    /* Tipografías */
    --fuente-principal: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-size-titulo-seccion: 2.5rem;
    --font-size-subtitulo-card: 1rem;
    --font-size-titulo-card: 1.125rem;
    --font-size-descripcion: 0.95rem;
    --font-size-link: 0.9rem;

    /* Animation variables */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    --scale-hover: 1.05;
    --rotate-hover: 5deg;
}

/* Global Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--color-degradado-inicio) 0%, var(--color-degradado-fin) 100%);
    padding: 120px 1rem 180px 1rem;
    color: var(--color-blanco);
    position: relative;
    z-index: 3;
}

.services .section-title {
    text-align: center;
    color: var(--color-blanco);
    font-size: var(--font-size-titulo-seccion);
    margin-bottom: 4rem;
}

.services .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-azul-mediano);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition-medium);
    transform-origin: center;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-azul-mediano), var(--color-acento));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transform: rotate(-10deg);
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: rotate(0deg) scale(1.1);
    background: linear-gradient(135deg, var(--color-acento), var(--color-azul-mediano));
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--color-blanco);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--color-blanco);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card p {
    color: var(--color-texto-claro);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    .services {
        padding: 100px 1rem 140px 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .services {
        padding: 80px 1rem 120px 1rem;
    }

    .services .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.75rem 1.25rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }
}

/* Business Section */
.business {
    background: linear-gradient(180deg, var(--color-blanco) 0%, var(--color-azul-suave) 100%);
    padding: 120px 0 180px 0 !important;
    position: relative;
    z-index: 4;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.business-card {
    background: var(--color-blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
    position: relative;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 400px;
    margin: 0 auto;
}

.business-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.business-card__image {
    height: 160px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.business-card__image.elite-scouting {
    background-image: linear-gradient(45deg, rgba(49, 130, 206, 0.9), rgba(99, 179, 237, 0.9));
}

.business-card__image.iref-spa {
    background-image: linear-gradient(45deg, rgba(72, 187, 120, 0.9), rgba(56, 161, 105, 0.9));
}

.business-card__image.kinetic {
    background-image: linear-gradient(45deg, rgba(236, 201, 75, 0.9), rgba(214, 158, 46, 0.9));
}

.business-card__image.concif {
    background-image: linear-gradient(45deg, rgba(159, 122, 234, 0.9), rgba(128, 90, 213, 0.9));
}

.business-card__image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(-15deg);
    transition: var(--transition-medium);
}

.business-card:hover .business-card__image i {
    transform: rotate(0deg) scale(1.2);
}

.business-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.business-card:hover .business-card__overlay {
    background: rgba(0, 0, 0, 0.2);
}

.business-card__content {
    padding: 1.5rem;
}

.business-card__tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--color-azul-suave);
    color: var(--color-azul-oscuro);
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.business-card h3 {
    color: var(--color-azul-oscuro);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.business-card p {
    color: var(--color-gris-oscuro);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.business-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

.business-card__role {
    color: var(--color-azul-mediano);
    font-weight: 500;
    font-size: 0.875rem;
}

.business-card__link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-azul-suave);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-azul-mediano);
    transition: all 0.3s ease;
}

.business-card__link:hover {
    background: var(--color-azul-mediano);
    color: var(--color-blanco);
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .business {
        padding: 100px 0 140px 0 !important;
    }

    .business-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .business-card__image {
        height: 140px;
    }

    .business-card__content {
        padding: 1.25rem;
    }

    .method {
        padding: 100px 0 100px 0;
    }
}

@media (max-width: 480px) {
    .business {
        padding: 80px 0 120px 0 !important;
    }

    .business-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .business-card__image {
        height: 130px;
    }

    .business-card__content {
        padding: 1rem;
    }

    .business-card h3 {
        font-size: 1.2rem;
    }

    .business-card p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .method {
        padding: 80px 0 80px 0;
    }
}

/* Method Section */
.method {
    padding: 120px 0 120px 0;
    background: linear-gradient(135deg, var(--color-degradado-inicio) 0%, var(--color-degradado-fin) 100%);
    color: var(--color-blanco);
    position: relative;
    z-index: 5;
}

.method .section-title {
    color: var(--color-blanco);
}

.method .section-title::after {
    background: rgba(255, 255, 255, 0.6);
}

.method-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.method-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    opacity: 0.95;
}

.method-elements h3 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--color-blanco);
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.element-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-borde);
    transition: var(--transition-medium);
    transform-origin: center;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.element-item i {
    font-size: 1.5rem;
    color: var(--color-texto-claro);
    width: 30px;
    transition: var(--transition-medium);
}

.element-item span {
    font-weight: 500;
}

.element-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.element-item:hover i {
    transform: rotate(var(--rotate-hover));
}

@media screen and (max-width: 768px) {
    .method {
        padding: 100px 0 100px 0;
    }

    .method-description {
        margin-bottom: 3rem;
    }

    .elements-grid {
        gap: 1.5rem;
    }

    .element-item {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 480px) {
    .method {
        padding: 80px 0 80px 0;
    }

    .method-description {
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
    }

    .elements-grid {
        gap: 1rem;
    }

    .element-item {
        padding: 1rem;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0 120px 0;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    z-index: 6;
}

.contact-content-centered {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.contact-item {
    background: #ffffff;
    padding: 1.25rem 1rem;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A90E2;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-item-content {
    width: 100%;
    min-width: 0;
}

.contact-item h3 {
    color: #1B2330;
    margin-bottom: 0.5rem;
    font-size: 1.08rem;
    font-weight: 600;
}

.contact-item p {
    margin-bottom: 0.5rem;
    color: #4A4A4A;
    font-size: 0.98rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-item a {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.98rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

.contact-item a:hover {
    color: #1B2330;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.social-links a {
    width: 34px;
    height: 34px;
    background: #f0f7ff;
    color: #4A90E2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: #4A90E2;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (min-width: 600px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 900px) {
    .contact-info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    .contact-content-centered {
        padding: 0 20px;
    }
    .contact-item {
        padding: 2rem;
    }
    .contact-item-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    .contact-item h3 {
        font-size: 1.3rem;
    }
    .contact-item p, .contact-item a {
        font-size: 1rem;
    }
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 10px;
    }
    .contact {
        padding: 64px 0 32px 0;
    }
    .footer {
        margin-top: 1.5rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1B2330 0%, #2C3E50 100%) !important;
    color: #ffffff !important;
    text-align: center;
    padding: 3rem 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    border-top: 4px solid #4A90E2;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.5), transparent);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 0;
    padding: 0;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.5;
    position: relative;
}

@media (min-width: 768px) {
    .footer p {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 !important;
    }
    
    .footer p {
        font-size: 0.9rem !important;
        line-height: 1.4;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100vw;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100vw;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        overflow-x: hidden;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        color: #1a365d;
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about {
        padding: 80px 0 100px 0;
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-placeholder {
        width: 200px;
        height: 200px;
    }

    .hero-placeholder i {
        font-size: 80px;
    }

    .hero-photo {
        width: 200px;
        height: 200px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .services .section-title {
        text-align: center;
    }

    .services .section-title::after {
        margin: 1rem auto;
    }

    /* .business {
        padding: 100px 0 160px 0;
    } */

    .contact {
        padding: 80px 0 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-quote {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .business-card {
        padding: 1.5rem;
    }

    /* .business {
        padding: 70px 0 50px 0;
    } */

    .contact {
        padding: 70px 0 50px 0;
    }
}

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

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for better UX */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Ensure proper section stacking */
section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-top: 80px; /* Add padding to all sections */
    margin-top: -80px; /* Offset the padding */
}

/* Excepción específica para la sección education para evitar solapamientos */
section.education {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

/* También aplicamos la corrección a otras secciones clave */
section.about,
section.services,
section.business,
section.method,
section.contact {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

/* Enhanced Contact Items */
.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll,
    .fade-in,
    .fade-in-up,
    .fade-in-right,
    .fade-in-left {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.main-content {
    width: 100%;
    min-height: auto;
}

/* AOS Fallback - Asegurar visibilidad de elementos */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.6s ease;
}
/* Permitir que AOS aplique animaciones cuando esté listo */
[data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
} 

/* ========== PURE CSS ANIMATIONS SYSTEM ========== */

/* Hero Section Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInRight 1s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInLeft 1s ease-out forwards;
}

/* Staggered delays for hero elements */
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.4s; }
.hero-quote { animation-delay: 0.6s; }
.cta-button { animation-delay: 0.8s; }
.hero-image { animation-delay: 0.3s; }

/* Scroll triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.service-card {
    transition-delay: 0s;
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }

.business-card:nth-child(1) { transition-delay: 0.1s; }
.business-card:nth-child(2) { transition-delay: 0.2s; }
.business-card:nth-child(3) { transition-delay: 0.3s; }
.business-card:nth-child(4) { transition-delay: 0.4s; }

.element-item:nth-child(1) { transition-delay: 0.1s; }
.element-item:nth-child(2) { transition-delay: 0.2s; }
.element-item:nth-child(3) { transition-delay: 0.3s; }
.element-item:nth-child(4) { transition-delay: 0.4s; }
.element-item:nth-child(5) { transition-delay: 0.5s; }

.contact-item:nth-child(1) { transition-delay: 0.1s; }
.contact-item:nth-child(2) { transition-delay: 0.2s; }
.contact-item:nth-child(3) { transition-delay: 0.3s; }
.contact-item:nth-child(4) { transition-delay: 0.4s; }

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Enhanced Navbar States */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15) !important;
}

.navbar-hidden {
    opacity: 0.95;
}

/* Enhanced Hover Animations */
.cta-button {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

/* Enhanced Service Card Animations */
.service-card {
    will-change: transform;
}

.service-card:hover {
    animation: serviceCardFloat 2s ease-in-out infinite;
}

@keyframes serviceCardFloat {
    0%, 100% { transform: translateY(-10px) scale(1.02) rotateX(0deg); }
    50% { transform: translateY(-15px) scale(1.02) rotateX(2deg); }
}

/* Business Card Advanced Hover */
.business-card {
    perspective: 1000px;
}

.business-card:hover {
    animation: businessCardTilt 0.6s ease-out forwards;
}

@keyframes businessCardTilt {
    0% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateX(5deg) rotateY(-2deg); }
    100% { transform: translateY(-15px) rotateX(0deg) rotateY(0deg); }
}

/* Enhanced Hero Photo Animation */
.hero-photo {
    animation: heroPhotoFloat 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes heroPhotoFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: brightness(1) contrast(1);
    }
    25% { 
        transform: translateY(-8px) rotate(1deg) scale(1.02);
        filter: brightness(1.05) contrast(1.02);
    }
    75% { 
        transform: translateY(-5px) rotate(-1deg) scale(1.01);
        filter: brightness(0.98) contrast(1.01);
    }
}

.hero-photo:hover {
    animation-play-state: paused;
    transform: scale(1.1) rotate(3deg) !important;
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Nav Link Advanced Hover */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* Section Title Enhanced Animation */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.section-title:hover::before {
    left: 100%;
}

/* Mobile-First Optimizations */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .service-card:hover,
    .business-card:hover {
        animation: none;
        transform: translateY(-5px) scale(1.01);
    }
    
    .hero-photo {
        animation-duration: 8s; /* Slower on mobile */
    }
    
    /* Optimize parallax for mobile */
    .hero-content {
        transform: none !important;
    }

    /* Faster animations on mobile */
    .fade-in, .fade-in-up, .fade-in-right, .fade-in-left {
        animation-duration: 0.6s;
    }
    
    .animate-on-scroll {
        transition-duration: 0.6s;
    }
}

@media (max-width: 480px) {
    /* Minimal animations on small screens */
    .service-card,
    .business-card,
    .contact-item,
    .element-item {
        transition-duration: 0.4s;
    }
    
    /* Disable complex hover effects */
    .cta-button::after {
        display: none;
    }
    
    .nav-link::before {
        display: none;
    }

    /* Even faster animations on very small screens */
    .fade-in, .fade-in-up, .fade-in-right, .fade-in-left {
        animation-duration: 0.4s;
    }
}

/* Improved Performance with Hardware Acceleration */
.navbar,
.service-card,
.business-card,
.hero-photo,
.cta-button {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-acento), var(--color-azul-mediano));
    z-index: 9999;
    transition: width 0.1s ease;
    border-radius: 0 2px 2px 0;
}

/* Enhanced Focus States for Accessibility */
.nav-link:focus,
.cta-button:focus,
.contact-item a:focus {
    outline: 2px solid var(--color-acento);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll,
    .fade-in,
    .fade-in-up,
    .fade-in-right,
    .fade-in-left {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cta-button,
    .hamburger {
        display: none !important;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (min-width: 768px) {
  .certifications-grid .certification-item { display: block !important; }
  #ver-mas-cert, #ver-mas-cert-trigger, #cert-mas { display: none !important; }
}


