/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #0a0f1c;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Fondo de cuadrícula tecnológica - AHORA EN NEGRO */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 45px;
    background-color: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1e293b;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-img {
    height: 85px;
}
.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
}
.logo-text span {
    color: #a60806;
    -webkit-text-stroke: .5px white;
}
.logo-text p {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}
nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #a60806; /* ROJO en lugar de azul */
}
.btn-nav {
    background: linear-gradient(135deg, #cd4d4a, #a60806);
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700 !important;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 20px 80px;
    position: relative;
}
.hero-content {
    max-width: 900px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(166, 8, 6, 0.1); /* ROJO */
    border: 1px solid rgba(166, 8, 6, 0.3); /* ROJO */
    padding: 8px 20px;
    border-radius: 50px;
    color: #cd4d4a; /* ROJO */
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    font-size: 0.85rem;
}
.hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
}
.highlight {
    color: #cd4d4a; /* ROJO */
    text-shadow: 0 0 20px rgba(166, 8, 6, 0.5); /* ROJO */
}
.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-botones {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-principal {
    background: linear-gradient(135deg, #cd4d4a, #a60806);
    color: #ffffff; /* Texto blanco para que contraste con el rojo */
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
}
.btn-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(166, 8, 6, 0.4); /* ROJO */
}
.btn-secundario {
    background: transparent;
    color: #cd4d4a; /* ROJO */
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    border: 1px solid #cd4d4a; /* ROJO */
    transition: all 0.3s;
}
.btn-secundario:hover {
    background: rgba(166, 8, 6, 0.1); /* ROJO */
}

/* Secciones generales */
section {
    padding: 100px 50px;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.titulo-seccion {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}
.subtitulo {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Servicios */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    background: linear-gradient(145deg, #111827, #0a0f1c);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #1e293b;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #a60806, transparent); /* ROJO */
    opacity: 0;
    transition: opacity 0.4s;
}
.card:hover {
    transform: translateY(-10px);
    border-color: #a60806; /* ROJO */
    box-shadow: 0 20px 40px rgba(166, 8, 6, 0.15); /* ROJO */
}
.card:hover::before {
    opacity: 1;
}
.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(166, 8, 6, 0.1); /* ROJO */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}
.card-icon i {
    font-size: 1.8rem;
    color: #cd4d4a; /* ROJO */
}
.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}
.card p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}
.card-link {
    color: #cd4d4a; /* ROJO */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.card-link:hover {
    gap: 15px;
}

/* Nosotros */
.nosotros {
    background: rgba(17, 24, 39, 0.5);
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}
.nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.nosotros-texto h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.3rem;
    color: #fff;
    margin-bottom: 25px;
}
.nosotros-texto p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}
.nosotros-texto ul {
    list-style: none;
}
.nosotros-texto ul li {
    margin: 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nosotros-texto ul li i {
    color: #cd4d4a; /* ROJO */
    font-size: 1.3rem;
}
.nosotros-stats {
    display: grid;
    gap: 25px;
}
.stat {
    background: #111827;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #a60806; /* ROJO */
    text-align: center;
}
.stat h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #cd4d4a; /* ROJO */
    margin-bottom: 5px;
}
.stat p {
    color: #94a3b8;
    font-weight: 600;
}

/* Contacto */
.contacto-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #111827;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1e293b;
}
.info-item i {
    font-size: 1.3rem;
    color: #cd4d4a; /* ROJO */
    width: 40px;
    text-align: center;
}
.info-item p {
    font-weight: 600;
}
.formulario {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.formulario input, .formulario textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background-color: #111827;
    color: #fff;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color 0.3s;
}
.formulario input:focus, .formulario textarea:focus {
    outline: none;
    border-color: #a60806; /* ROJO */
    box-shadow: 0 0 15px rgba(166, 8, 6, 0.2); /* ROJO */
}

/* Footer */
footer {
    background-color: #050810;
    border-top: 1px solid #1e293b;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    letter-spacing: 2px;
}
.footer-logo span {
    color: #cd4d4a; /* ROJO */
}
.footer-logo p {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 5px;
}
.redes a {
    color: #94a3b8;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s;
}
.redes a:hover {
    color: #cd4d4a; /* ROJO */
    transform: translateY(-3px);
    display: inline-block;
}
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .nosotros-container, .contacto-container {
        grid-template-columns: 1fr;
    }
    section {
        padding: 80px 20px;
    }
}
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    line-height: 60px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20b358;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* Botón de Login como ícono discreto */
.btn-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #334155;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.3rem;
}

/* Efecto al pasar el mouse */
.btn-login-icon:hover {
    border-color: #cd4d4a; /* ROJO */
    color: #cd4d4a; /* ROJO */
    background: rgba(166, 8, 6, 0.1); /* ROJO */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 8, 6, 0.3); /* ROJO */
}

.btn-tienda-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #334155;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.3rem;
}

.btn-tienda-icon:hover {
    border-color: #a60806; /* ROJO */
    color: #a60806; /* ROJO */
    background: rgba(166, 8, 6, 0.1); /* ROJO */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 8, 6, 0.3); /* ROJO */
}
/* Sección de Mapa */
.mapa-seccion {
    padding: 80px 50px;
    background: rgba(17, 24, 39, 0.3);
    border-top: 1px solid #1e293b;
}

.mapa-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.mapa-container iframe {
    filter: grayscale(100%) invert(92%) contrast(83%);
    display: block;
    width: 100%;
    /* Recorta la esquina superior izquierda para ocultar el recuadro de error */
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
}
.mapa-titulo {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 15, 28, 0.95);
    border: 1px solid #a60806;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
.mapa-titulo i {
    color: #a60806;
    font-size: 1.3rem;
}