/* ==========================================================
   ESTILOS GENERALES Y VARIABLES DE DISEÑO
   ========================================================== */
:root {
    --primary: #d32f2f;
    --primary-dark: #9a0007;
    --accent: #f39c12;
    --dark-bg: #111827;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.16);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   MENÚ DE NAVEGACIÓN FLOTANTE
   ========================================================== */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

/* ==========================================================
   HERO / BANNER PRINCIPAL
   ========================================================== */
  /* ==========================================================
   CONFIGURACIÓN DE LOGO1 COMO BOTÓN INTERACTIVO
   ========================================================== */

/* Alineación y enlace como botón */
.logo-btn-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    outline: none;
}

/* Espacio suficiente en el header para que luzca grande */
.nav-container {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* Estilos de la imagen logo1.png */
#app-logo {
    height: 95px !important;         /* Tamaño amplio y destacado */
    width: auto !important;          /* Preserva la proporción original */
    object-fit: contain;
    cursor: pointer;                 /* Muestra la mano de clic */
    user-select: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

/* Efecto Hover (se eleva e ilumina suavemente) */
#app-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

/* Efecto Click (se hunde como un botón físico) */
#app-logo:active {
    transform: scale(0.95);
} 
/* ==========================================================
   AJUSTES DE ALINEACIÓN Y TAMAÑO PARA EL HEADER Y BOTONES
   ========================================================== */

/* 1. Logo un poco más amplio y centrado */
#app-logo {
    height: 75px !important; /* Incrementamos el tamaño para llenar mejor el header */
    width: auto !important;
    cursor: pointer;
    transition: transform 0.3s ease;
}
/* Ajuste del contenedor de la barra superior */
header .container, 
.navbar .container {
    max-width: 100% !important; /* Ocupa todo el ancho */
    padding-left: 20px !important; /* Margen pequeño a la izquierda */
    padding-right: 30px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Tamaño del logo */
.logo img, 
.navbar-brand img {
    height: 70px !important; /* Ajusta la altura a tu gusto (ej. entre 50px y 70px) */
    width: auto !important;   /* Mantiene la proporción de la imagen */
    object-fit: contain;
}
#app-logo:hover {
    transform: scale(1.06);
}

/* 2. Alineación perfecta del texto en el botón transparente "Contáctanos" */
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px !important;
    line-height: 1.2 !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

/* 3. Espaciado del menú de navegación */
.nav-menu ul {
    align-items: center;
    margin-bottom: 0; /* Elimina márgenes inferiores indeseados de Bootstrap */
}
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 70px;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(211, 47, 47, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 750px;
}

.badge-hero {
    background: var(--accent);
    color: var(--dark-bg);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 20px 0;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary-custom, .btn-secondary-custom {
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.4);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary-custom {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-secondary-custom:hover {
    background: var(--white);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* ==========================================================
   ESTADÍSTICAS Y CONTADORES
   ========================================================== */
.stats-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-bg);
}

/* ==========================================================
   SECCIÓN NOSOTROS
   ========================================================== */
.about-section {
    padding: 100px 0 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.main-about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}

.floating-experience-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-experience-card i {
    font-size: 2rem;
    color: var(--accent);
}

.section-title-left {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.section-title-left span {
    color: var(--primary);
}

.lead-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 10px;
    font-weight: 600;
}

.check-list i {
    color: var(--primary);
    margin-right: 8px;
}

/* ==========================================================
   SECCIÓN PROCESOS
   ========================================================== */
.process-section {
    padding: 80px 0;
    background: #f1f5f9;
}

.section-header.center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.4rem;
}

.section-header h2 span {
    color: var(--primary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.process-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.process-img-box {
    position: relative;
    height: 220px;
}

.process-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-number {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.process-info {
    padding: 25px;
}

.process-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* ==========================================================
   GALERÍA FOTOGRÁFICA
   ========================================================== */
.gallery-section {
    padding: 80px 0;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .nav-menu {
        display: none; /* Puedes expandirlo a menú hamburguesa si gustas */
    }
}