@font-face {
    font-family: 'Ferinca Custom';
    src: url('fonts/11348-fontps.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.logo h2 {
    color: #2563eb;
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    letter-spacing: 15px;
    text-transform: uppercase;
}

.logo i {
    color: #2563eb;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1f2937 50%, #374151 100%);
    color: white;
    padding: 80px 20px 20px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78,205,196,0.4);
}

.hero-image {
    text-align: center;
    animation: fadeInRight 1s ease 0.6s both;
    position: relative;
    height: 350px;
    overflow: hidden;
}

/* Contenedor del mapa con etiqueta */
.map-with-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
}

/* Etiqueta FERINCA al lado del mapa */
.ferinca-label {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: bold;
    color: #2d3748;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 3px;
    text-shadow: none;
}

/* Mapa del Perú simplificado */
.peru-map-3d {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 50%, #20B2AA 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.peru-country {
    position: relative;
    width: 220px;
    height: 280px;
    margin: 20px;
}

/* Forma del país */
.country-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #228B22 0%, #32CD32 30%, #90EE90 100%);
    border-radius: 60px 20px 40px 80px;
    border: 3px solid #006400;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.3),
        inset 0 5px 15px rgba(255,255,255,0.2);
    transform: rotate(-5deg);
}

/* Ciudades */
.city {
    position: absolute;
    z-index: 3;
}

.city-dot {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.6);
    position: relative;
    animation: cityPulse 3s ease-in-out infinite;
}

.city-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid rgba(37, 99, 235, 0.4);
    border-radius: 50%;
    animation: rippleEffect 2s ease-out infinite;
}

.city-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    font-family: 'Cinzel', serif;
}

.city-transport {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    animation: transportFloat 3s ease-in-out infinite;
}

/* Posiciones de las ciudades */
.lima {
    left: 20%;
    top: 45%;
    animation-delay: 0s;
}

.arequipa {
    left: 25%;
    top: 70%;
    animation-delay: 1s;
}

.cusco {
    left: 45%;
    top: 60%;
    animation-delay: 2s;
}

.trujillo {
    left: 35%;
    top: 25%;
    animation-delay: 3s;
}

/* Vehículos Ferinca */
.ferinca-vehicles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.ferinca-bus {
    position: absolute;
    width: 24px;
    height: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 8px 3px 3px 8px;
    border: 2px solid #fff;
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    font-family: 'Cinzel', serif;
}

.bus-1 {
    left: 15%;
    top: 40%;
    animation: busRoute1 12s ease-in-out infinite;
}

.bus-2 {
    left: 30%;
    top: 50%;
    animation: busRoute2 15s ease-in-out infinite 3s;
}

.bus-3 {
    left: 40%;
    top: 30%;
    animation: busRoute3 18s ease-in-out infinite 6s;
}

/* Rutas */
.routes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.route {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(37, 99, 235, 0.6) 25%, 
        rgba(37, 99, 235, 0.9) 50%, 
        rgba(37, 99, 235, 0.6) 75%, 
        transparent 100%);
    border-radius: 2px;
    animation: routeGlow 4s ease-in-out infinite;
}

.route-lima-arequipa {
    left: 22%;
    top: 55%;
    width: 60px;
    transform: rotate(35deg);
    animation-delay: 0s;
}

.route-lima-trujillo {
    left: 25%;
    top: 35%;
    width: 80px;
    transform: rotate(-25deg);
    animation-delay: 1s;
}

.route-cusco-arequipa {
    left: 35%;
    top: 65%;
    width: 50px;
    transform: rotate(-15deg);
    animation-delay: 2s;
}

/* Badge de cobertura */
.coverage-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(37, 99, 235, 0.90);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    text-align: center;
    animation: badgeFloat 6s ease-in-out infinite;
    z-index: 10;
    font-size: 11px;
}

.coverage-badge h3 {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.coverage-badge p {
    margin: 2px 0;
    font-size: 10px;
    opacity: 0.9;
}

/* Animaciones */
@keyframes cityPulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.2);
    }
}

@keyframes rippleEffect {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes transportFloat {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px);
    }
    50% { 
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes busRoute1 {
    0% { left: 15%; top: 40%; }
    25% { left: 25%; top: 70%; }
    50% { left: 45%; top: 60%; }
    75% { left: 35%; top: 25%; }
    100% { left: 15%; top: 40%; }
}

@keyframes busRoute2 {
    0% { left: 30%; top: 50%; }
    33% { left: 45%; top: 60%; }
    66% { left: 35%; top: 25%; }
    100% { left: 30%; top: 50%; }
}

@keyframes busRoute3 {
    0% { left: 40%; top: 30%; }
    50% { left: 20%; top: 45%; }
    100% { left: 40%; top: 30%; }
}

@keyframes routeGlow {
    0%, 100% { 
        opacity: 0.4;
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    }
    50% { 
        opacity: 0.9;
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.8);
    }
}

@keyframes badgeFloat {
    0%, 100% { 
        transform: translateY(0px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
    50% { 
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-image {
        height: 280px;
    }
    
    .peru-country {
        width: 180px;
        height: 220px;
    }
    
    .city-label {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .ferinca-bus {
        width: 20px;
        height: 12px;
        font-size: 8px;
    }
    
    .coverage-badge {
        padding: 12px 16px;
        bottom: 15px;
        right: 15px;
    }
    
    .coverage-badge h3 {
        font-size: 14px;
    }
    
    .coverage-badge p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 220px;
    }
    
    .peru-country {
        width: 140px;
        height: 180px;
    }
    
    .city-transport {
        font-size: 14px;
    }
    
    .ferinca-bus {
        width: 18px;
        height: 10px;
        font-size: 7px;
    }
}

/* Mapa del Perú en 3D */
.peru-map-3d {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, #87CEEB 0%, #4682B4 100%);
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: mapRotate 20s ease-in-out infinite;
}

.peru-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(20deg);
    width: 200px;
    height: 280px;
    background: linear-gradient(145deg, #228B22 0%, #32CD32 50%, #8FBC8F 100%);
    clip-path: polygon(
        15% 0%,    /* Norte extremo */
        25% 5%,    /* Tumbes */
        35% 8%,    /* Piura */
        45% 15%,   /* Lambayeque */
        55% 20%,   /* La Libertad */
        60% 25%,   /* Ancash */
        62% 35%,   /* Lima */
        58% 45%,   /* Ica */
        55% 55%,   /* Arequipa */
        50% 70%,   /* Tacna */
        45% 75%,   /* Frontera sur */
        35% 80%,   /* Puno */
        30% 75%,   /* Cusco */
        25% 70%,   /* Apurímac */
        20% 65%,   /* Ayacucho */
        15% 60%,   /* Huancavelica */
        10% 55%,   /* Junín */
        8% 45%,    /* Pasco */
        5% 35%,    /* Huánuco */
        3% 25%,    /* Ucayali lado */
        2% 15%,    /* San Martín */
        5% 8%,     /* Amazonas */
        10% 3%     /* Loreto */
    );
    border: 2px solid #006400;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.3),
        inset 0 5px 15px rgba(255,255,255,0.2);
    z-index: 2;
}

/* Regiones geográficas */
.region {
    position: absolute;
    z-index: 1;
}

.costa {
    left: 0;
    top: 20%;
    width: 25%;
    height: 60%;
    background: linear-gradient(135deg, #F4A460 0%, #DEB887 100%);
    border-radius: 0 15px 15px 0;
    opacity: 0.3;
}

.sierra {
    left: 25%;
    top: 10%;
    width: 50%;
    height: 80%;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border-radius: 15px;
    opacity: 0.2;
}

.selva {
    right: 0;
    top: 15%;
    width: 35%;
    height: 70%;
    background: linear-gradient(135deg, #006400 0%, #228B22 100%);
    border-radius: 15px 0 0 15px;
    opacity: 0.25;
}

.region-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-family: 'Cinzel', serif;
}

/* Cordillera de los Andes */
.andes-range {
    position: absolute;
    background: linear-gradient(135deg, #696969 0%, #A9A9A9 50%, #DCDCDC 100%);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    z-index: 3;
}

.andes-1 {
    left: 35%;
    top: 15%;
    width: 8px;
    height: 150px;
    transform: rotate(-5deg);
    animation: mountainFloat 8s ease-in-out infinite;
}

.andes-2 {
    left: 45%;
    top: 25%;
    width: 6px;
    height: 120px;
    transform: rotate(3deg);
    animation: mountainFloat 8s ease-in-out infinite 2s;
}

.andes-3 {
    left: 40%;
    top: 45%;
    width: 10px;
    height: 100px;
    transform: rotate(-8deg);
    animation: mountainFloat 8s ease-in-out infinite 4s;
}

/* Río Amazonas */
.amazon-river {
    position: absolute;
    right: 10%;
    top: 30%;
    width: 3px;
    height: 120px;
    background: linear-gradient(to bottom, #4169E1, #1E90FF);
    border-radius: 2px;
    transform: rotate(15deg);
    box-shadow: 0 0 10px rgba(65, 105, 225, 0.6);
    animation: riverFlow 6s ease-in-out infinite;
    z-index: 2;
}

/* Ciudades principales */
.city {
    position: absolute;
    z-index: 4;
    animation: cityPulse 4s ease-in-out infinite;
}

.city-marker {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
    position: relative;
}

.city-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(37, 99, 235, 0.4);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.city-name {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    font-family: 'Cinzel', serif;
}

.transport-icon {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    animation: transportBounce 3s ease-in-out infinite;
}

/* Posiciones de las ciudades */
.city-lima {
    left: 30%;
    top: 40%;
    animation-delay: 0s;
}

.city-arequipa {
    left: 35%;
    top: 65%;
    animation-delay: 1s;
}

.city-cusco {
    left: 45%;
    top: 55%;
    animation-delay: 2s;
}

.city-trujillo {
    left: 42%;
    top: 25%;
    animation-delay: 3s;
}

.city-iquitos {
    right: 20%;
    top: 20%;
    animation-delay: 4s;
}

/* Rutas de transporte */
.transport-routes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.route {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(37, 99, 235, 0.6) 25%, 
        rgba(37, 99, 235, 0.8) 50%, 
        rgba(37, 99, 235, 0.6) 75%, 
        transparent 100%);
    border-radius: 2px;
    animation: routeTravel 8s ease-in-out infinite;
}

.route-1 {
    left: 30%;
    top: 40%;
    width: 80px;
    height: 3px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.route-2 {
    left: 35%;
    top: 45%;
    width: 60px;
    height: 3px;
    transform: rotate(-20deg);
    animation-delay: 2s;
}

.route-3 {
    left: 42%;
    top: 25%;
    width: 70px;
    height: 3px;
    transform: rotate(75deg);
    animation-delay: 4s;
}

.route-4 {
    right: 20%;
    top: 20%;
    width: 90px;
    height: 3px;
    transform: rotate(-45deg);
    animation-delay: 6s;
}

/* Vehículos en movimiento en el mapa */
.moving-vehicles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.vehicle-on-map {
    position: absolute;
    width: 20px;
    height: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 6px 2px 2px 6px;
    border: 1px solid #fff;
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    font-family: 'Cinzel', serif;
}

.vehicle-1 {
    left: 25%;
    top: 35%;
    animation: vehicleRoute1 12s ease-in-out infinite;
}

.vehicle-2 {
    left: 40%;
    top: 50%;
    animation: vehicleRoute2 15s ease-in-out infinite 3s;
}

.vehicle-3 {
    right: 25%;
    top: 25%;
    animation: vehicleRoute3 10s ease-in-out infinite 6s;
}

/* Océano Pacífico */
.pacific-ocean {
    position: absolute;
    left: -50px;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(135deg, #006994 0%, #4682B4 50%, #87CEEB 100%);
    z-index: 0;
}

.ocean-wave {
    position: absolute;
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    animation: oceanWaves 4s ease-in-out infinite;
}

.wave-1 {
    top: 20%;
    animation-delay: 0s;
}

.wave-2 {
    top: 50%;
    animation-delay: 1.3s;
}

.wave-3 {
    top: 80%;
    animation-delay: 2.6s;
}

/* Información de cobertura */
.coverage-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 6;
}

.coverage-badge {
    background: rgba(37, 99, 235, 0.95);
    color: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-align: center;
    animation: badgePulse 6s ease-in-out infinite;
}

.coverage-badge h4 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.coverage-badge p {
    margin: 3px 0;
    font-size: 12px;
    opacity: 0.95;
}

/* Animaciones */
@keyframes mapRotate {
    0%, 100% { 
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% { 
        transform: rotateY(2deg) rotateX(1deg);
    }
    50% { 
        transform: rotateY(0deg) rotateX(2deg);
    }
    75% { 
        transform: rotateY(-2deg) rotateX(1deg);
    }
}

@keyframes mountainFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }
    50% { 
        transform: translateY(-8px) rotate(var(--rotation, 0deg));
    }
}

.andes-1 { --rotation: -5deg; }
.andes-2 { --rotation: 3deg; }
.andes-3 { --rotation: -8deg; }

@keyframes riverFlow {
    0%, 100% { 
        opacity: 0.8;
        transform: rotate(15deg) scaleY(1);
    }
    50% { 
        opacity: 1;
        transform: rotate(15deg) scaleY(1.1);
    }
}

@keyframes cityPulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes transportBounce {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px);
    }
    50% { 
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes routeTravel {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.2) rotate(var(--rotation, 0deg));
    }
}

.route-1 { --rotation: 45deg; }
.route-2 { --rotation: -20deg; }
.route-3 { --rotation: 75deg; }
.route-4 { --rotation: -45deg; }

@keyframes vehicleRoute1 {
    0% { left: 25%; top: 35%; }
    25% { left: 35%; top: 45%; }
    50% { left: 45%; top: 55%; }
    75% { left: 35%; top: 65%; }
    100% { left: 25%; top: 35%; }
}

@keyframes vehicleRoute2 {
    0% { left: 40%; top: 50%; }
    33% { left: 42%; top: 25%; }
    66% { right: 20%; top: 20%; }
    100% { left: 40%; top: 50%; }
}

@keyframes vehicleRoute3 {
    0% { right: 25%; top: 25%; }
    50% { left: 30%; top: 40%; }
    100% { right: 25%; top: 25%; }
}

@keyframes oceanWaves {
    0%, 100% { 
        transform: translateX(0px);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(10px);
        opacity: 0.6;
    }
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-image {
        height: 280px;
    }
    
    .peru-outline {
        width: 160px;
        height: 220px;
    }
    
    .city-name {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .coverage-badge {
        padding: 10px 15px;
    }
    
    .coverage-badge h4 {
        font-size: 14px;
    }
    
    .coverage-badge p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 220px;
    }
    
    .peru-outline {
        width: 120px;
        height: 180px;
    }
    
    .vehicle-on-map {
        width: 16px;
        height: 10px;
        font-size: 8px;
    }
    
    .transport-icon {
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-image {
        height: 280px;
    }
    
    .highway {
        height: 100px;
    }
    
    .vehicle {
        width: 32px;
        height: 16px;
    }
    
    .ferinca-bus {
        width: 40px;
        height: 20px;
    }
    
    .van {
        width: 36px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 220px;
    }
    
    .highway {
        height: 80px;
    }
    
    .vehicle {
        width: 28px;
        height: 14px;
    }
    
    .ferinca-bus {
        width: 35px;
        height: 18px;
    }
}

/* === RESTO DE ESTILOS DE LA PÁGINA === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

/* Títulos blancos para secciones negras */
.fleet .section-title,
.contact .section-title {
    color: #ffffff;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #2563eb;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Services */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    color: #000000;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #000000;
    border: 2px solid #2563eb;
}

.service-card:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #000000;
    border: 2px solid #2563eb;
}

.service-card:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #000000;
    border: 2px solid #2563eb;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Fleet */
.fleet {
    padding: 80px 0;
    background: linear-gradient(135deg, #000000 0%, #1f2937 50%, #374151 100%);
    color: white;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.fleet-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-5px);
}

.fleet-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    text-align: center;
}

.fleet-icon i {
    font-size: 4rem;
    color: white;
}

.fleet-card h3 {
    padding: 20px 30px 10px;
    font-size: 1.8rem;
    color: #333;
}

.fleet-specs {
    padding: 0 30px;
    margin-bottom: 20px;
}

.fleet-specs p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #666;
}

.fleet-specs i {
    color: #2563eb;
    width: 20px;
}

.fleet-card > p {
    padding: 0 30px 30px;
    color: #666;
    line-height: 1.6;
}

/* About */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 5px;
}

.stat p {
    color: #666;
    font-weight: 500;
}

.about-image {
    text-align: center;
}

.about-image i {
    font-size: 12rem;
    color: #2563eb;
    opacity: 0.7;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #000000 0%, #1f2937 50%, #374151 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: #2563eb;
    width: 50px;
    text-align: center;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: #ffffff;
}

.contact-item p {
    color: #ffffff;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #1f2937;
    padding: 50px 0 20px;
}

/* Footer horizontal */
.footer-content-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-text i {
    color: #2563eb;
    font-size: 1.5rem;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.footer-text span:first-child {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.footer-text span:last-child {
    font-size: 1rem;
    color: #1f2937;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #2563eb;
}

/* Aplicar fuente especial al logo en footer */
.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #1f2937;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #2563eb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    text-align: center;
    color: #1f2937;
}

/* Animations */
@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 float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        height: 200px;
    }

    /* Ocultar animación del plano de autos en móviles */
    .map-with-label {
        display: none;
    }
    
    .moving-bus-container {
        border-radius: 15px;
    }
    
    .bus-body {
        width: 120px;
        height: 55px;
        border-radius: 15px 6px 6px 6px;
    }
    
    .bus-front {
        left: -6px;
        top: 8px;
        width: 8px;
        height: 38px;
    }
    
    .bus-windows {
        top: 10px;
        left: 15px;
        gap: 8px;
    }
    
    .window {
        width: 16px;
        height: 18px;
    }
    
    .bus-door {
        right: 12px;
        top: 10px;
        width: 15px;
        height: 32px;
    }
    
    .company-name {
        font-size: 8px;
        top: 30px;
        left: 12px;
    }
    
    .wheel {
        width: 22px;
        height: 22px;
    }
    
    .wheel-front {
        right: 20px;
    }
    
    .wheel-back {
        left: 25px;
    }
    
    .rim {
        width: 10px;
        height: 10px;
    }
    
    .speed-lines {
        right: 15px;
    }
    
    .speed-line {
        width: 20px;
        height: 1px;
        margin: 6px 0;
    }
    
    .speed-line:nth-child(2) {
        width: 18px;
    }
    
    .speed-line:nth-child(3) {
        width: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-image i {
        font-size: 8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-image i {
        font-size: 6rem;
    }

    .fleet-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
}

/* Plano de tráfico con autos moviéndose */
.peru-map-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-left: 0px;
}

.traffic-map {
    width: 450px;
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    
}

.map-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    position: relative;
    border: 4px solid #0369a1;
}

/* Carreteras */
.road {
    position: absolute;
    background: linear-gradient(90deg, #374151 0%, #4b5563 50%, #374151 100%);
    border: 2px solid #1f2937;
    z-index: 1;
}

.road::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #fbbf24 0px,
        #fbbf24 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateY(-50%);
}

.road-horizontal {
    height: 40px;
    width: 80%;
}

.road-vertical {
    width: 40px;
    height: 70%;
}

.road-diagonal {
    height: 35px;
    width: 60%;
}

/* Posicionamiento de carreteras */
.road-1 { top: 15%; left: 10%; }
.road-2 { top: 45%; left: 5%; }
.road-3 { top: 75%; left: 15%; }
.road-4 { top: 10%; left: 25%; }
.road-5 { top: 20%; left: 70%; }
.road-6 { top: 25%; left: 30%; transform: rotate(45deg); }
.road-7 { top: 60%; left: 40%; transform: rotate(-30deg); }

/* Intersecciones */
.intersection {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #4b5563 0%, #374151 100%);
    border-radius: 50%;
    border: 3px solid #1f2937;
    z-index: 2;
}

.intersection-1 { top: 12%; left: 23%; }
.intersection-2 { top: 42%; left: 35%; }
.intersection-3 { top: 42%; left: 70%; }
.intersection-4 { top: 72%; left: 45%; }

/* Vehículos moviéndose */
.vehicle {
    position: absolute;
    font-size: 20px;
    z-index: 5;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.car-1 {
    top: 12%;
    left: 15%;
    animation: moveHorizontal1 8s linear infinite;
}

.car-2 {
    top: 42%;
    left: 10%;
    animation: moveHorizontal2 6s linear infinite;
}

.car-3 {
    top: 72%;
    left: 20%;
    animation: moveHorizontal3 10s linear infinite;
}

.car-4 {
    top: 15%;
    left: 27%;
    animation: moveVertical1 7s linear infinite;
}

.car-5 {
    top: 25%;
    left: 72%;
    animation: moveVertical2 9s linear infinite;
}

.car-6 {
    top: 20%;
    left: 45%;
    animation: moveDiagonal1 12s linear infinite;
}

.car-7 {
    top: 50%;
    left: 25%;
    animation: moveHorizontal1 5s linear infinite reverse;
}

.car-8 {
    top: 35%;
    left: 60%;
    animation: moveVertical1 8s linear infinite reverse;
}

/* Vehículos de Ferinca */
.ferinca-vehicle {
    position: absolute;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    box-shadow: 0 4px 12px rgba(99,102,241,0.5);
}

.ferinca-1 {
    top: 30%;
    left: 40%;
    animation: moveFerinca1 15s linear infinite;
}

.ferinca-2 {
    top: 55%;
    left: 20%;
    animation: moveFerinca2 12s linear infinite;
}

.ferinca-3 {
    top: 20%;
    left: 80%;
    animation: moveFerinca3 18s linear infinite;
}

/* Edificios */
.building {
    position: absolute;
    font-size: 24px;
    z-index: 3;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.building-1 { top: 5%; left: 60%; }
.building-2 { top: 85%; left: 70%; }
.building-3 { top: 5%; left: 5%; }
.building-4 { top: 85%; left: 10%; }

/* Animaciones de movimiento */
@keyframes moveHorizontal1 {
    0% { left: 10%; }
    100% { left: 85%; }
}

@keyframes moveHorizontal2 {
    0% { left: 5%; }
    100% { left: 80%; }
}

@keyframes moveHorizontal3 {
    0% { left: 15%; }
    100% { left: 90%; }
}

@keyframes moveVertical1 {
    0% { top: 10%; }
    100% { top: 85%; }
}

@keyframes moveVertical2 {
    0% { top: 20%; }
    100% { top: 80%; }
}

@keyframes moveDiagonal1 {
    0% { top: 20%; left: 45%; }
    25% { top: 40%; left: 65%; }
    50% { top: 60%; left: 85%; }
    75% { top: 80%; left: 65%; }
    100% { top: 20%; left: 45%; }
}

@keyframes moveFerinca1 {
    0% { top: 30%; left: 40%; }
    25% { top: 15%; left: 60%; }
    50% { top: 45%; left: 80%; }
    75% { top: 70%; left: 60%; }
    100% { top: 30%; left: 40%; }
}

@keyframes moveFerinca2 {
    0% { left: 20%; }
    50% { left: 70%; }
    100% { left: 20%; }
}

@keyframes moveFerinca3 {
    0% { top: 20%; }
    50% { top: 75%; }
    100% { top: 20%; }
}

/* ESTILOS PARA LA PÁGINA DE GALERÍA */

/* Gallery Hero */
.gallery-hero {
    background: linear-gradient(135deg, #000000 0%, #1f2937 50%, #374151 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.gallery-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #ffffff;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.gallery-overlay p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.gallery-overlay i {
    font-size: 2rem;
    color: #2563eb;
}

/* Placeholder para imágenes faltantes */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #64748b;
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #2563eb;
}

.placeholder-image p {
    text-align: center;
    font-weight: 600;
}

.placeholder-image small {
    color: #94a3b8;
}

/* Modal para vista ampliada */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover {
    color: #2563eb;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
}

/* Botones de navegación del modal */
.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1002;
}

.modal-prev,
.modal-next {
    background-color: rgba(37, 99, 235, 0.8);
    color: white;
    border: none;
    padding: 20px 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(37, 99, 235, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.modal-prev:active,
.modal-next:active {
    transform: scale(0.95);
}

/* Navegación activa para galería */
.nav-menu a.active {
    color: #2563eb;
    position: relative;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Responsive para galería */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .modal-close {
        top: 15px;
        right: 25px;
        font-size: 30px;
    }
}

/* Sección de Afiliados */
.affiliates {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    overflow: hidden;
}

.affiliates .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #1e293b;
}

.affiliates-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.affiliates-track {
    display: flex;
    gap: 28px;
    animation: scroll-affiliates 30s linear infinite;
    width: fit-content;
}

.affiliate-item {
    flex-shrink: 0;
    width: 225px;
    height: 225px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.affiliate-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

.affiliate-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes scroll-affiliates {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animación al hover */
.affiliates-slider:hover .affiliates-track {
    animation-play-state: paused;
}

/* Responsive para afiliados */
@media (max-width: 768px) {
    .affiliate-item {
        width: 100px;
        height: 100px;
    }
    
    .affiliates-track {
        gap: 18px;
    }
}

/* Estilos para Operación Minera */
.mining-content {
    padding: 80px 0;
}

.mining-intro {
    text-align: center;
    margin-bottom: 60px;
}

.mining-intro h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.mining-intro > p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.mining-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mining-feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.mining-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.mining-feature-card i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.mining-feature-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.mining-feature-card p {
    color: #64748b;
    line-height: 1.6;
}

.mining-gallery {
    margin-top: 80px;
}

.mining-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.mining-gallery-description {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.mining-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.mining-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.mining-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mining-gallery-item:hover img {
    transform: scale(1.1);
}

.mining-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.mining-gallery-item:hover .mining-overlay {
    background: rgba(37, 99, 235, 0.9);
}

.mining-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.mining-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.mining-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 30px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 20px;
    color: white;
}

.mining-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.mining-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.mining-cta .btn {
    background: white;
    color: #2563eb;
    font-weight: 600;
}

.mining-cta .btn:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
}

/* Responsive para Operación Minera */
@media (max-width: 768px) {
    .mining-intro h2,
    .mining-gallery h2 {
        font-size: 1.8rem;
    }
    
    .mining-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mining-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mining-gallery-item {
        height: 250px;
    }
    
    .mining-cta {
        padding: 40px 20px;
    }
    
    .mining-cta h2 {
        font-size: 1.6rem;
    }
}