/* Colores principales de la marca */
:root {
    --primary: #B2183A;
    --gray-accent: #949598;
    --dark-text: #202322;
    --bg-white: #ffffff;
    --bg-light: #fcfcfc;
}

/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Cabecera */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(32, 35, 34, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Sección Hero */
.hero {
    background: linear-gradient(rgba(32, 35, 34, 0.82), rgba(32, 35, 34, 0.82)), url('Fotos/Screenshot\ 2026-08-06\ 175214.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e2e2;
}

/* Botones */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #90122e;
    transform: translateY(-2px);
}

/* Secciones Generales */
.section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-white);
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-accent);
    margin-bottom: 40px;
}

/* Opcional: Para quitar la línea en la última sección y que no se vea doble al final */
.section:last-of-type {
    border-bottom: none;
}

/* Nosotros / Tarjetas */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.about-card {
    background: var(--bg-light);
    padding: 35px;
    border-top: 4px solid var(--primary);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(32, 35, 34, 0.04);
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 1.3rem;
}

.about-card p {
    color: #555;
}

/* Estilos para la Galería Asimétrica */
.gallery-section {
    background-color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

.gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

/* Elemento principal grande arriba */
.gallery-item.featured {
    width: 100%;
}

.gallery-item.featured img {
    width: 100%;
    height: 380px; /* Más altura para destacar el elemento principal */
    object-fit: cover;
}

/* Fila inferior con los otros 2 elementos */
.gallery-bottom-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Estilo general de las tarjetas de la galería como botones */
.gallery-item {
    display: block;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(32, 35, 34, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none;
    text-align: left;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(178, 24, 58, 0.12);
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    font-size: 1.25rem;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.gallery-info p {
    font-size: 0.95rem;
    color: var(--gray-accent);
}

/* Clientes / Aliados */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.client-card {
    background: var(--bg-light);
    border: 1px solid #e5e5e5;
    padding: 30px 20px;
    border-radius: 6px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-text);
    box-shadow: 0 2px 5px rgba(32, 35, 34, 0.02);
    transition: all 0.3s;
}

.client-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(178, 24, 58, 0.08);
}

/* Contacto */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.contact-section > .container > p {
    color: var(--gray-accent);
    margin-bottom: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    text-align: left;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(32, 35, 34, 0.04);
}

.contact-info h3 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 5px;
}

.contact-info p {
    color: #555;
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    background: var(--bg-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Pie de Página */
footer {
    background-color: #B2183A; /* Tu color de marca */
    color: white;
    padding: 40px 0; /* Mantiene el recuadro grande y amplio */
    text-align: centrar; /* Centra todo el contenido */
    margin-top: 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente el icono y el texto */
    justify-content: center;
    gap: 20px; /* Espacio entre el icono y el texto de copyright */
}

.footer-icon {
    width: 80px; /* Ajusta el tamaño del icono aquí (ej. 50px o 60px) */
    height: auto;
    object-fit: contain;
}

.footer-content p {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}
/* Sección Certificaciones Optimizada y Centrada */
.certs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra los elementos sobrantes automáticamente */
    gap: 25px;
    margin-top: 40px;
}

.cert-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 8px;
    width: 200px; /* Ancho fijo para mantener la consistencia */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(32, 35, 34, 0.03);
    transition: all 0.3s ease;
}

.cert-item img {
    max-width: 100%;
    max-height: 75px;
    object-fit: contain;
}

.cert-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(178, 24, 58, 0.1);
}
/* Estilos para Marcas Propias */
.marcas-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.marcas-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.marca-btn {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 120px; /* Ajusta este tamaño según prefieras */
}

.marca-btn img {
    width: 100%;
    height: auto;
    filter: grayscale(20%); /* Un toque elegante */
}

.marca-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.marca-btn:hover img {
    filter: grayscale(0%);
}
/* Estilos para las Subgalerías de 10 Fotos */
.subgallery-section {
    padding: 60px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.subgallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.subgallery-item {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(32, 35, 34, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.subgallery-item:hover {
    transform: translateY(-4px);
}

.subgallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.back-btn-container {
    margin-top: 50px;
}
/* Separador elegante unificado */
.linea-separadora {
    display: block;
    width: 1300px;       /* Longitud fija */
    height: 3px;        /* Grosor */
    background-color: #B2183A; /* Tu color corporativo */
    margin: 40px auto;  /* Centrado */
    border-radius: 2px;
}
/* Estilo para el enlace de Google Maps */
.map-link {
    text-decoration: none;
    color: #555; /* Color del texto original */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--primary); /* Se pone color tinto al pasar el mouse */
}

/* Si tu icono es una imagen */
.map-link img {
    width: 24px;
    height: 24px;
}
/* Contenedor del mapa interactivo */
.map-container {
    width: 100%;
    min-height: 350px; /* Altura mínima para que luzca bien */
    border-radius: 8px;
    overflow: hidden; /* Para que las esquinas del mapa respeten el redondeado */
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(32, 35, 34, 0.04);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}