@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== VARIABLES Y RESET ===== */
:root {
    --azul-oscuro: #001a33;
    --azul-brillante: #0052CC;
    --plata: #E8E8E8;
    --gris: #D3D3D3;
    --rojo: #E74C3C;
    --blanco: #FFFFFF;
    --negro: #000000;
    --gris-oscuro: #333333;
    --padding-container: 0 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gris-oscuro);
    line-height: 1.6;
    background: url('img/fondo.png') fixed center / cover no-repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--padding-container);
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header {
    background: rgba(0, 26, 51, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--blanco);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--plata);
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

.brand-tecni {
    color: #d1d5db;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.brand-diesel {
    color: #3b82f6;
    text-shadow: 0 1px 6px rgba(59,130,246,0.5);
}

.brand-yy {
    color: #ef4444;
    font-style: italic;
    -webkit-text-stroke: 1.2px #1a0000;
    text-shadow:
        0 0 8px rgba(239,68,68,0.6),
        0 1px 3px rgba(0,0,0,0.7);
    margin-left: 2px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--blanco);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rojo);
    background-color: rgba(231, 76, 60, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--rojo);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== HOME / HERO ===== */
.home {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.2s ease-in-out, opacity 0.8s ease;
    color: var(--blanco);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.58) 50%,
        rgba(0, 0, 0, 0.30) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    width: 100%;
    padding: 44px 48px;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--plata);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.5);
}

section {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    scroll-margin-top: 80px;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BOTONES ===== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--rojo);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
    background-color: #d63b2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: var(--blanco);
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.16);
    width: 100%;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.42), 0 0 20px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* ===== SERVICIOS ===== */
.servicios,
.galeria,
.contacto,
.nosotros {
    padding: 48px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 28px;
}

.servicios,
.galeria,
.contacto,
.nosotros {
    background: rgba(0, 10, 30, 0.70) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.servicios h2,
.galeria h2,
.contacto h2,
.nosotros h2 {
    font-size: 40px;
    color: #ffffff;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.5);
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    padding-bottom: 14px;
}

.servicios h2::after,
.galeria h2::after,
.contacto h2::after,
.nosotros h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-brillante), var(--rojo));
    border-radius: 2px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio-card {
    background-color: rgba(4, 12, 35, 0.85);
    background-size: 105%;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 28px 20px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-size 0.55s ease;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 5, 22, 0.60) 0%,
        rgba(0, 8, 30, 0.75) 55%,
        rgba(0, 5, 22, 0.90) 100%
    );
    border-radius: inherit;
    z-index: 0;
    transition: opacity 0.35s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
    background-size: 118%;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(59, 130, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.servicio-card:hover::before {
    opacity: 0.75;
}

.servicio-icon {
    font-size: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 12px rgba(59, 130, 246, 0.10);
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover .servicio-icon {
    background: rgba(59, 130, 246, 0.28);
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.servicio-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.servicio-card h3 {
    color: #f1f5f9;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.servicio-card p {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== GALERÍA ===== */
.galeria {
    padding: 48px 20px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 1 / 1;
    background: rgba(4, 12, 35, 0.90);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.galeria-item:active {
    transform: translateY(-3px) scale(0.99);
}

.galeria-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(59, 130, 246, 0.22);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.55s ease;
}

.galeria-item:hover img {
    transform: scale(1.09);
}

/* Gradiente sutil permanente para que los bordes de la imagen se integren */
.galeria-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 5, 22, 0.55) 0%,
        rgba(0, 5, 22, 0.10) 40%,
        transparent 65%
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.galeria-item:hover::before {
    opacity: 0;
}

.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 6, 28, 0.97) 0%,
        rgba(0, 6, 28, 0.72) 45%,
        rgba(0, 6, 28, 0.12) 100%
    );
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 16px;
    gap: 7px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay p {
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.80);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ===== CONTACTO ===== */
.contacto {
    padding: 48px 20px;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}

.info-item {
    background: rgba(8, 20, 55, 0.42);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    flex: 1;
    gap: 16px;
}

.info-item:hover {
    transform: translateY(-3px);
    background: rgba(15, 32, 72, 0.56);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(59, 130, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.info-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-icon-location {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.info-icon-phone {
    background: rgba(34, 197, 94, 0.13);
    color: #6ee7b7;
    border: 1px solid rgba(34, 197, 94, 0.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.info-body {
    flex: 1;
}

.info-body h3 {
    color: #e2e8f0;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.info-body p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
}

.info-body a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.info-body a:hover {
    color: #f87171;
    text-decoration: underline;
}

/* ===== TELÉFONOS UNIFICADOS ===== */
.phone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 5px;
    padding: 2px 8px;
    flex-shrink: 0;
}

/* ===== REDES SOCIALES ===== */
.social-circles {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 6px 0;
}

.social-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.social-circle:hover {
    transform: translateY(-4px) scale(1.08);
}

.social-tiktok {
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
}

.social-tiktok:hover {
    box-shadow: 0 6px 24px rgba(105, 201, 208, 0.38), 0 0 16px rgba(105, 201, 208, 0.18);
}

.social-facebook {
    background: linear-gradient(145deg, #2d8cf0 0%, #1565c0 100%);
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.30);
}

.social-facebook:hover {
    box-shadow: 0 6px 24px rgba(24, 119, 242, 0.48), 0 0 16px rgba(45, 140, 240, 0.22);
}

.social-instagram {
    background: linear-gradient(145deg, #e6683c 0%, #cc2366 60%, #a01070 100%);
    box-shadow: 0 4px 16px rgba(204, 35, 102, 0.28);
}

.social-instagram:hover {
    box-shadow: 0 6px 24px rgba(204, 35, 102, 0.45), 0 0 16px rgba(230, 104, 60, 0.20);
}

.social-whatsapp {
    background: linear-gradient(145deg, #2ecc71 0%, #17a84b 100%);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
}

.social-whatsapp:hover {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 16px rgba(46, 204, 113, 0.20);
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: waPulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.70);
    animation: none;
}

@keyframes waPulse {
    0%   { box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
    50%  { box-shadow: 0 6px 40px rgba(37,211,102,0.80); }
    100% { box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(8, 20, 55, 0.42);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.contacto-form input,
.contacto-form textarea {
    padding: 13px 16px;
    background: rgba(248, 250, 255, 0.90);
    border: 1.5px solid rgba(148, 163, 184, 0.30);
    border-radius: 12px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #1e293b;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: #94a3b8;
}

.contacto-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.60);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== NOSOTROS ===== */
.nosotros {
    padding: 48px 20px;
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
}

.nosotros-text {
    background: rgba(8, 20, 55, 0.42);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nosotros-text h3 {
    color: #e2e8f0;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nosotros-text h3:first-child {
    margin-top: 0;
}

.nosotros-text p {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 14px;
}

.nosotros-text ul {
    list-style: none;
    padding-left: 0;
}

.nosotros-text li {
    color: #94a3b8;
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.nosotros-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f87171;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.6;
}

.nosotros-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}

.stat {
    background: rgba(8, 20, 55, 0.42);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    color: var(--blanco);
    padding: 28px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stat:hover {
    transform: translateY(-3px);
    background: rgba(15, 32, 72, 0.56);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(59, 130, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.stat h4 {
    font-size: 34px;
    line-height: 1;
    margin: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.stat p {
    font-size: 15px;
    font-weight: 500;
    color: #cbd5e1;
    letter-spacing: 0.2px;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 26, 51, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--blanco);
    text-align: center;
    padding: 30px 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 26, 51, 0.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 20px;
        animation: slideDown 0.3s ease;
    }

    .nav.active {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .logo-section h1 {
        font-size: 18px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .home {
        padding: 80px 20px;
        min-height: 400px;
    }

    .servicios h2,
    .galeria h2,
    .contacto h2,
    .nosotros h2 {
        font-size: 30px;
    }

    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .servicio-card {
        padding: 14px 8px;
        border-radius: 16px;
    }

    .servicio-icon {
        font-size: 18px;
        width: 42px;
        height: 42px;
        margin-bottom: 8px;
    }

    .servicio-card h3 {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .servicio-card p {
        font-size: 10px;
        line-height: 1.4;
    }

    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .galeria-overlay p {
        font-size: 11px;
    }

    .galeria-ver {
        font-size: 9px;
        padding: 3px 8px;
    }

    .contacto-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contacto-form {
        padding: 24px;
    }

    .social-circles {
        gap: 16px;
    }

    .social-circle {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 26px;
        bottom: 20px;
        right: 16px;
    }

    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servicios,
    .galeria,
    .contacto,
    .nosotros {
        padding: 32px 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --padding-container: 20px 15px;
    }

    .header .container {
        padding: 10px 15px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .logo-section h1 {
        font-size: 16px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .home {
        padding: 60px 15px;
        min-height: 350px;
    }

    .servicios h2,
    .galeria h2,
    .contacto h2,
    .nosotros h2 {
        font-size: 24px;
    }

    .servicio-card {
        padding: 14px 8px;
    }

    .servicio-icon {
        font-size: 26px;
    }

    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .nav ul {
        gap: 10px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .stat h4 {
        font-size: 26px;
        width: 54px;
        height: 54px;
    }

    .stat p {
        font-size: 13px;
    }

    .nosotros-text h3 {
        font-size: 17px;
    }

    .contacto-form input,
    .contacto-form textarea {
        font-size: 13px;
    }
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: rgba(8, 28, 60, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
    position: relative;
    transform: scale(0.90) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(231, 76, 60, 0.75);
    border-color: rgba(231, 76, 60, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.modal-img-wrap {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 24px 24px 0 0;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.modal-body {
    padding: 28px 32px 32px;
}

.modal-title {
    color: #e2e8f0;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.modal-desc {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.modal-footer-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.modal-cta-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.galeria-ver {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    font-size: 12px;
    color: #93c5fd;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(59, 130, 246, 0.20);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 20px;
    padding: 4px 12px;
    transition: background 0.3s ease;
}

.galeria-item:hover .galeria-ver {
    background: rgba(59, 130, 246, 0.32);
}

/* scrollbar del modal */
.modal-card::-webkit-scrollbar {
    width: 6px;
}

.modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

@media (max-width: 480px) {
    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
    }
}

/* ===== SCROLL UP BEHAVIOR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--azul-brillante);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--azul-oscuro);
}
