/* Definición de variables CSS */
:root {
    --primary: #ff4545;
    --primary-dark: #ff0000;
    --accent: #3d8f2d;
    --dark: #1f2c3f;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
}

/* --- Estilos personalizados para index.html --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
:root {
    --primary: #e53935;
    --primary-dark: #be1616;
    --light: #ff0000;
    --dark: #222;
    --gray: #888;
}
/* Estilos generales */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #fff;
    color: var(--dark);
    line-height: 1.6;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/*Estilos generales */
body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
}
/* Contenedor principal centrado con padding horizontal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Encabezado fijo */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Contenido del encabezado alineado horizontalmente */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
/* Estilos de navegación */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}
/* Estilos de los enlaces de navegación */
nav ul li a { 
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
/* Efectos hover y estado activo en los enlaces de navegación */
nav ul li a:hover {
    color: var(--primary);
}
/* Estilos para el enlace activo */
nav ul li a.active {
    color: var(--primary);
}
/* Indicador debajo del enlace activo */
nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}
/* Línea decorativa al pasar el mouse sobre los enlaces */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}
/* Línea decorativa al pasar el mouse sobre los enlaces */
nav ul li a:hover::after {
    width: 100%;
}
/* Seccion de contacto de emergencia */
.emergency-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Estilos del botón de contacto de emergencia */
.emergency-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
/* Efectos hover en el botón de contacto de emergencia */
.emergency-phone:hover {
    background-color: #dc2626;
    transform: scale(1.05);
}
/* Seccion servicios */
.services {
    background-color: white;
}
/* Grid de servicios con diseño responsivo */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
/* Tarjetas de servicio con efectos hover */
.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: none;
}
/* Efectos hover en las tarjetas de servicio */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
/* Iconos de servicio */
.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}
/* Título de la tarjeta de servicio */
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* seccion hero */
.hero {
    background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.9)), url('https://images.unsplash.com/photo-1632852908805-eb0a0df9155d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}
/* Contenido centrado dentro del Hero */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
/* Título principal del Hero */
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
/* Párrafo descriptivo del Hero */
.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}
/* Botones del Hero alineados y adaptables */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}



/* seccion estadistica */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}
/* Grid de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
/* Elementos individuales de estadística */
.stat-item {
    padding: 20px;
}
/* Número destacado en la estadística */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
/* Etiqueta de la estadística */
.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}



/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}
/* Distribución en columnas del contenido del footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
/* Estilos para el enlace activo */
.footer-column a.active {
    font-weight: bold;
    color: white;
}

/* Indicador debajo del enlace activo */
.footer-column a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

/* Línea decorativa al pasar el mouse sobre los enlaces */
.footer-column a:hover::after {
    transform: scaleX(1);
}
/* Título de columna con línea decorativa */
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
}
/* Lista de enlaces del footer */
.footer-column ul {
    list-style: none;
}
/* Elementos de la lista del footer */
.footer-column ul li {
    margin-bottom: 12px;
}
/* Enlaces del footer */
.footer-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
/* Efecto hover en los enlaces del footer */
.footer-column ul li a:hover {
    color: white;
}
/* Información de contacto en columna */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* Elementos de contacto */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Íconos de contacto */
.contact-item i {
    color: var(--primary);
}
/* Íconos de redes sociales con efecto hover */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
/* Íconos de redes sociales */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #334155;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}
/* Efecto hover en los íconos de redes sociales */
.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Copyright */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Botones principales */
.btn-rojo {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 16px 38px;
    font-size: 1.1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229,57,53,0.18);
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-dark);
}
/* Efecto hover en los botones principales */
.btn-rojo:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(229,57,53,0.25);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
/* nav estatico en celular */
    nav ul {
        gap: 12px;
        flex-direction: row;
        align-items: center;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px 4px;
        white-space: nowrap;
    }
    nav ul li { display: inline-block; }
    nav ul li a { padding: 8px 12px; font-size: 0.95rem; }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    nav ul {
        gap: 15px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}


/* Galeria ajustable */
@media (max-width: 992px) {
  .galeria img { height: 180px; }
}
@media (max-width: 600px) {
  .galeria { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
  .galeria img { height: 140px; border-radius: 8px; }
  .modal-content { max-width: 95%; max-height: 90%; }
}
@media (max-width: 420px) {
  .galeria { grid-template-columns: 1fr; }
  .galeria img { height: auto; }
  .cerrar { top: 18px; right: 18px; font-size: 36px; }
}

/*nav en celular */
@media (max-width: 768px) {
    nav { order: 3; width: 100%; }
    /* Compact horizontal menu on mobile */
    nav ul { gap: 12px; flex-direction: row; align-items: center; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 4px; white-space: nowrap; }
    nav ul li { display: inline-block; }
    nav ul li a { padding: 8px 12px; font-size: 0.95rem; }
}

/* Galería responsiva */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.galeria {
    box-sizing: border-box;
    padding-left: 6px;
    padding-right: 6px;
}
.galeria img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .galeria { padding-left: 8px; padding-right: 8px; }
}

/*nav en celular */
@media (max-width: 768px) {
    nav { order: 3; width: 100%; }
    /* Menú horizontal compacto en móvil */
    nav ul { gap: 12px; flex-direction: row; align-items: center; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 4px; white-space: nowrap; }
    nav ul li { display: inline-block; }
    nav ul li a { padding: 8px 12px; font-size: 0.95rem; }
}
