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

:root {
    /* Color Palette */
    --dark-blue: #0303b5;
    --medium-dark-blue: #1a3dd1;
    --vibrant-blue: #3a9af0;
    --sky-blue: #006fd9;
    --light-blue: #5bb4f8;
    --very-light-blue: #6dc2fc;
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Typography */
    --font-logo: 'Playfair Display', serif;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .hero-prev,
    .hero-next {
        display: none !important; /* Forzar ocultar flechas en móvil */
    }
    
    .hero-dots {
        bottom: 20px; /* Ajustar posición de los puntos */
    }

    .navbar {
        padding: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--black);
    text-decoration: none;
    min-height: 50px;
}

.logo-image {
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease;
    min-width: 50px;
    min-height: 50px;
    background-color: transparent;
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-m, .logo-g {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--dark-blue), var(--vibrant-blue));
    border-radius: 4px;
}

.logo-m {
    left: 0;
    top: 0;
    clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%);
}

.logo-g {
    right: 0;
    bottom: 0;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 50%);
}

.logo-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--black);
}

.logo-text .registered-symbol {
    color: var(--black);
    font-size: 0.8rem;
    vertical-align: super;
    margin-left: 2px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--dark-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark-blue);
    transition: var(--transition);
}

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

.admin-link {
    background: linear-gradient(135deg, var(--vibrant-blue), var(--light-blue));
    color: var(--white) !important;
    padding: 8px 16px !important;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-link:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--vibrant-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 154, 240, 0.3);
}

.admin-link::after {
    display: none;
}

.admin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.admin-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.admin-text {
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-blue);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    margin: 0;
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    margin: 0;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%, center; }
    50% { background-position: 100% 50%, center; }
    100% { background-position: 0% 50%, center; }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--vibrant-blue) 50%, var(--sky-blue) 100%);
    z-index: -2;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/law-office-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero-slide.active {
    opacity: 1;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(3, 3, 181, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--dark-blue);
    transform: translateY(-50%) scale(1.1);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.hero-dots .dot.active {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: scale(1.2);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: 8vh;
}

.hero-logo {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.1s both;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-logo-img {
    max-width: 500px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    opacity: 1;
    transition: opacity 0.2s ease;
}

.hero-title {
    font-family: var(--font-logo);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
    background: linear-gradient(45deg, #fff, #e0f2fe, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both, textShine 3s ease-in-out infinite 2s;
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.title-line {
    display: block;
    animation: slideInLeft 1s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
    opacity: 1;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px; /* Rounded full pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--white);
    color: var(--dark-blue);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--dark-blue);
    border-color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-color: var(--white);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

/* Promo Video Section */
.promo-video-section {
    padding: 80px 0;
    background: #ffffff; /* Fondo blanco limpio */
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos flotantes de fondo */
.promo-video-section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(3, 3, 181, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: floatShape 20s ease-in-out infinite;
}

.promo-video-header::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 154, 240, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: floatShape 25s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 20px) scale(1.1);
    }
}

.promo-video-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.promo-video-title {
    font-family: var(--font-logo);
    font-size: 3rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.promo-video-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
}

.promo-video-subtitle {
    font-size: 1.2rem;
    color: var(--black);
    font-weight: 400;
    margin-top: 1.5rem;
    opacity: 0.85;
}

.promo-video-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.promo-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(3, 3, 181, 0.1);
    display: block;
    margin: 0 auto;
    background: #000;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.promo-video:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 150px rgba(3, 3, 181, 0.15);
}

.promo-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(3, 3, 181, 0.05) 0%,
        transparent 50%,
        rgba(58, 154, 240, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Decoración adicional elegante */
.promo-video-wrapper {
    position: relative;
}

@media (max-width: 768px) {
    .promo-video-section {
        padding: 50px 0;
    }
    
    .promo-video-header {
        margin-bottom: 2rem;
    }
    
    .promo-video-title {
        font-size: 2.2rem;
    }
    
    .promo-video-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .promo-video-wrapper {
        padding: 0 15px;
    }
    
    .promo-video {
        border-radius: 16px;
    }
    
    .promo-video:hover {
        transform: translateY(-4px);
    }
    
    .promo-video-wrapper::before,
    .promo-video-wrapper::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .promo-video-section {
        padding: 40px 0;
    }
    
    .promo-video-header {
        margin-bottom: 1.5rem;
    }
    
    .promo-video-title {
        font-size: 1.8rem;
    }
    
    .promo-video-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .promo-video {
        border-radius: 12px;
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .promo-video:hover {
        transform: translateY(-2px);
    }
}

/* Company Info Section */
.company-info {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.company-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-blue), var(--vibrant-blue), var(--sky-blue));
}

.company-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(3, 3, 181, 0.1);
}

.company-main-title {
    font-family: var(--font-logo);
    font-size: 3.5rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.company-tagline {
    font-size: 1.5rem;
    color: var(--vibrant-blue);
    font-weight: 600;
    font-style: italic;
}

.company-content {
    max-width: 1200px;
    margin: 0 auto;
}

.company-intro {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--vibrant-blue);
}

.company-intro .company-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin: 0;
}

.company-section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.section-icon {
    width: 60px;
    height: 60px;
    background: var(--dark-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.section-icon svg {
    width: 30px;
    height: 30px;
}

.section-heading {
    font-family: var(--font-logo);
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.company-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.company-text strong {
    color: var(--dark-blue);
    font-weight: 600;
}

/* Value Propositions */
.value-propositions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(3, 3, 181, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h4 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 2rem;
}

.location-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--dark-blue), var(--vibrant-blue));
    border-radius: 0;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.location-card:first-child {
    border-radius: 12px 0 0 12px;
}

.location-card:last-child {
    border-radius: 0 12px 12px 0;
    border-right: none;
}

.location-card:hover {
    transform: scale(1.05);
}

.location-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.location-icon svg {
    width: 100%;
    height: 100%;
}

.location-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Values Section */
.values-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--vibrant-blue) 100%);
    color: white;
}

.values-section .section-heading,
.values-section .company-text {
    color: white;
}

.values-section .section-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.value-item {
    flex: 0 0 auto;
}

.value-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.value-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Responsive Design for Company Info */
@media (max-width: 768px) {
    .company-main-title {
        font-size: 2.5rem;
    }
    
    .company-tagline {
        font-size: 1.2rem;
    }
    
    .company-section {
        padding: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .value-propositions {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .company-intro,
    .company-section {
        margin-bottom: 2.5rem;
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-logo);
    font-size: 3rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 60px 0;
    background: var(--gray-100);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    background: var(--dark-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-card-icon .icon-target,
.about-card-icon .icon-vision,
.about-card-icon .icon-values,
.about-card-icon .icon-goal {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Icono de Misión (target) */
.about-card-icon .icon-target::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-radius: 50%;
}

.about-card-icon .icon-target::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

/* Icono de Visión (ojo) */
.about-card-icon .icon-vision::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 14px;
    border: 3px solid var(--white);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.about-card-icon .icon-vision::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
}

/* Icono de Valores (estrella) */
.about-card-icon .icon-values::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(36deg);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 6px solid var(--white);
}

.about-card-icon .icon-values::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-36deg);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 6px solid var(--white);
}

/* Icono de Objetivo (checklist) */
.about-card-icon .icon-goal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 3px solid var(--white);
    border-radius: 4px;
}

.about-card-icon .icon-goal::after {
    content: '';
    position: absolute;
    top: 52%;
    left: 48%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border-right: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: 600;
}

.about-card p {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    flex-grow: 1;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

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

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--gray-700);
    line-height: 1.7;
}

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

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--vibrant-blue);
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 154, 240, 0.1);
    border-radius: 50%;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: start;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    width: 200px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    width: 120px;
    text-align: center;
    display: inline-block;
    min-height: 3.5rem;
    line-height: 1;
}

.stat-number.stat-text {
    font-size: 1.2rem;
    line-height: 1.4;
    width: auto;
    min-width: 120px;
    max-width: 200px;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* Team Section */
.team {
    padding: 60px 0;
    background: var(--white);
}

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

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 300px !important;
    border: 2px solid #ddd !important;
}

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

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-blue), var(--vibrant-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    font-weight: bold;
}

.loading {
    text-align: center;
    padding: 2rem;
    grid-column: 1 / -1;
}

.spinner {
    border: 3px solid var(--gray-300);
    border-top: 3px solid var(--vibrant-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.member-name {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    display: block !important;
    visibility: visible !important;
}

.member-position {
    color: var(--vibrant-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block !important;
    visibility: visible !important;
}

.member-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: block !important;
    visibility: visible !important;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--dark-blue);
}

/* Services Section */
.services {
    padding: 60px 0;
    background: var(--gray-100);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-blue), var(--vibrant-blue));
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
    background: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

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

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

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--vibrant-blue);
    font-weight: bold;
}

/* Articles Section */
.articles {
    padding: 60px 0;
    background: var(--white);
}

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

.article-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-blue), var(--vibrant-blue));
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.article-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
}

.article-card h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 1rem;
}

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

.article-excerpt {
    margin-bottom: 1rem;
}

.article-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-300);
}

.article-full-content {
    color: var(--gray-700);
    line-height: 1.8;
}

.article-full-content h4 {
    font-size: 1.3rem;
    color: var(--black);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-full-content h4:first-child {
    margin-top: 0;
}

.article-full-content p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.article-full-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--gray-700);
}

.article-full-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-full-content strong {
    color: var(--dark-blue);
    font-weight: 600;
}

.read-more-btn {
    background: linear-gradient(135deg, var(--dark-blue), var(--vibrant-blue));
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 3, 181, 0.3);
}

.article-card.expanded {
    padding-bottom: 2rem;
}

.article-card {
    cursor: pointer;
}

.article-card:hover .read-more-btn {
    background: linear-gradient(135deg, var(--vibrant-blue), var(--light-blue));
}

.member-experience {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-300);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: var(--white);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.contact-form {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--border-radius);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vibrant-blue);
    box-shadow: 0 0 0 3px rgba(58, 154, 240, 0.1);
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section p {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-400);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .hamburger {
        display: flex;
        order: 2;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 100%;
        height: 100vh;
        height: 100dvh; /* Soporte para móviles modernos */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrar verticalmente por defecto */
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 20px; /* Espacio arriba y abajo */
        z-index: 999;
        overflow-y: auto; /* Scroll si el contenido es muy alto */
    }
    
    /* Ajuste para pantallas muy bajitas (landscape o móviles pequeños) */
    @media (max-height: 600px) {
        .nav-menu {
            justify-content: flex-start; /* Alinear arriba si no cabe */
            padding-top: 100px;
        }
    }
    
    .nav-menu.active {
        right: 0;
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        flex-shrink: 0; /* Evitar que se aplasten */
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Simple fade-in delay */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
    
    .nav-link {
        display: inline-block;
        padding: 10px 20px;
        font-size: 1.3rem;
        font-weight: 500;
        color: var(--black);
        border: none;
        position: relative;
    }
    
    .nav-link::before {
        display: none; /* Quitamos la línea lateral */
    }

    .nav-link:hover {
        color: var(--vibrant-blue);
        background: transparent;
        padding-left: 20px; /* Sin desplazamiento */
    }
    
    .admin-link {
        margin-top: 2rem;
        width: auto;
        min-width: 200px;
        display: inline-flex;
        padding: 12px 30px !important;
        justify-content: center;
        background: var(--vibrant-blue);
        box-shadow: 0 5px 15px rgba(58, 154, 240, 0.3);
        font-size: 1rem;
        border-radius: 50px;
        color: white !important;
        transform: none !important;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-image {
        height: 40px !important;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .hero {
        padding-top: 80px;
        min-height: 100vh;
    }
    
    .hero-logo-img {
        max-width: 90%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-header {
        padding: 0 15px;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-grid-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding: 0 15px;
    }
    
    .contact-form {
        padding: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .company-info {
        padding: 100px 0 60px;
    }
    
    /* Asegurar que las secciones no queden ocultas por el header */
    .team,
    .services,
    .articles,
    .contact,
    .about {
        padding-top: 100px;
    }
    
    .company-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .value-propositions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .location-card {
        border-radius: 12px !important;
        border-right: none !important;
    }
    
    .location-card:first-child,
    .location-card:last-child {
        border-radius: 12px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 15px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .header {
        padding: 0;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-image {
        height: 35px !important;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .hamburger {
        padding: 6px;
    }
    
    .hamburger span {
        width: 24px;
        height: 2.5px;
        margin: 3px 0;
    }
    
    .nav-menu {
        top: 60px;
        padding: 1.5rem 0;
    }
    
    .nav-link {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .hero {
        padding-top: 70px;
        min-height: 90vh;
    }
    
    /* Asegurar que las secciones no queden ocultas por el header en móviles pequeños */
    .team,
    .services,
    .articles,
    .contact,
    .about,
    .company-info {
        padding-top: 90px;
    }
    
    .hero-logo-img {
        max-width: 85%;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .company-main-title {
        font-size: 2rem;
    }
    
    .company-tagline {
        font-size: 1rem;
    }
    
    .company-section {
        padding: 1.2rem;
    }
    
    .section-heading {
        font-size: 1.3rem;
    }
    
    .company-text {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .team-member {
        padding: 1.2rem;
    }
    
    .article-card {
        padding: 1.2rem;
    }
    
    .contact-item {
        padding: 1rem;
    }

    /* Corrección formulario contacto móvil */
    .contact-form {
        padding: 1.5rem; /* Más espacio interno */
        margin: 0 10px; /* Separación de los bordes de la pantalla */
        width: auto; /* Permitir que se ajuste */
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevenir zoom automático en iOS */
    }

    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .whatsapp-float-btn {
        bottom: 10px;
        left: 10px;
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .back-to-top {
        bottom: 70px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Botón flotante de Admin */

/* WhatsApp Floating Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.whatsapp-float-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.whatsapp-float-text {
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--vibrant-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

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

/* Responsive para botones flotantes */
@media (max-width: 768px) {
    
    .whatsapp-float-btn {
        bottom: 15px;
        left: 15px;
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .whatsapp-float-text {
        display: none;
    }
    
    .whatsapp-float-icon {
        width: 22px;
        height: 22px;
    }
    
    .whatsapp-float-icon svg {
        width: 100%;
        height: 100%;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
    
    /* Optimizaciones adicionales para móviles */
    .hero {
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Mejorar legibilidad en móviles */
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .member-description {
        font-size: 0.9rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Optimizaciones de rendimiento */
    .team-member {
        will-change: transform;
    }
    
    .btn {
        will-change: transform;
    }
    
    .stat-item {
        will-change: transform;
    }
}

/* Optimizaciones de rendimiento generales */
* {
    box-sizing: border-box;
}

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

/* Lazy loading para imágenes */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* Mejorar animaciones en dispositivos de bajo rendimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
}
