/* --- Estilos generales --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* --- Encabezado --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 2rem;
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header .nav-list a {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.header .logo img {
    height: 60px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.header.header-scrolled {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header.header-scrolled .nav-list a {
    color: #555;
    text-shadow: none;
}

.header.header-scrolled .logo img {
    filter: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Sección principal (Hero) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: white;
    overflow: hidden;
    padding-top: 70px;
}

/* Fondo tipo slider */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* la que está activa se ve */
.hero-slide.active {
    opacity: 1;
}

/* opcional: un degradado oscuro encima para que se lea el texto */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 60%);
    z-index: -1;
}


#video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
}

.hero-content {
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 6rem;
    border-radius: 100px;
    text-align: left;
    max-width: 1000px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* --- Sección Nosotros --- */
.about-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin: 2rem auto; 
    max-width: 900px; 
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-section p {
    line-height: 1.8; 
    color: #555;
    max-width: 700px;
    margin: 1.5rem auto;
}

/* --- Sección Catálogo (Productos) --- */
.catalog-section {
    padding: 4rem 2rem;
    background-color: #fff; 
    text-align: center; /* Centra todo el contenido de la sección */
}

.catalog-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.catalog-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.catalog-btn {
    margin-bottom: 3rem; /* Espacio debajo del botón del catálogo */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

.product-card a {
    display: inline-block;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

/* --- Sección Asesoría --- */
.advisory-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 900px;
    text-align: center;
}

.advisory-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.advisory-section p {
    line-height: 1.8;
    color: #555;
    max-width: 700px;
    margin: 1.5rem auto;
}

/* --- Sección Ubicaciones --- */
.locations-section {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

.locations-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.locations-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.map-container {
    max-width: 900px;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}

.location-details {
    max-width: 900px;
    margin: 0 auto;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.map-link i {
    margin-right: 0.5rem;
}

/* --- Sección Contacto --- */
.contact-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button.btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* --- Pie de página --- */
.footer {
    background-color: #21445b;
    color: #ccc;
    padding: 3rem 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-column.social-media {
    display: flex;
    flex-direction: column;
}

.social-media a {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
}

.copyright .logo img {
    height: auto;
    width: 400px;
}
/* --- Sección Productos Detallados --- */
.products-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.products-section p {
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.product-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #21445b;
}

.product-item p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.btn-small {
    background-color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #0056b3;
}


/* --- Media Queries para diseño responsivo --- */
@media (max-width: 768px) {
    .nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }
    
    .header.header-scrolled .nav {
        background-color: #fff;
    }
}

/* --- Modal de producto --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Separación bajo el header fijo en catalogo.html */
:root { --header-h: 70px; }

header.catalog-header {
  margin-top: calc(var(--header-h) + 10px);
}

/* Resaltar enlace de página actual en navbar */
.nav-list a[aria-current="page"] {
  text-underline-offset: 6px;
  text-decoration: underline;
  font-weight: 700;
}

:root { --verde-primario:#21445b; /* mismo tono de tus títulos */ }

/* Bloque catálogo con fondo del color del título */
.catalog-section.catalog-accent{
  background: var(--verde-primario);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* Sutil decoración diagonal */
.catalog-section.catalog-accent::after{
  content:"";
  position:absolute;
  inset:-20% -10% auto -10%;
  height:60%;
  background: rgba(255,255,255,0.06);
  transform: skewY(-4deg);
  pointer-events:none;
}

.catalog-section.catalog-accent h2{ color:#fff; }
.catalog-section.catalog-accent p{
  color: rgba(255,255,255,0.9);
  margin: 0 auto 2rem;
}

/* CTA en fila y responsive */
.catalog-cta{
  display:flex;
  gap: 0.8rem;
  justify-content:center;
  flex-wrap:wrap;
}

/* Botón sólido ya lo tienes como .btn; solo ajusto color base a juego */
.catalog-accent .btn.catalog-btn{
  background:#1a3647; /* tono más oscuro para contraste */
}
.catalog-accent .btn.catalog-btn:hover{
  background:#142a38;
}

/* Botón contorno claro a juego */
.btn-outline-light{
  background: transparent;
  border: 2px solid rgba(255,255,255,0.85);
  color:#fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.btn-outline-light:hover{
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Ajustes responsivos */
@media (max-width: 640px){
  .catalog-accent .btn,
  .catalog-accent .btn-outline-light{
    width:100%;
    text-align:center;
  }
}

.mission-vision {
    padding: 4rem 2rem;
    background: #fff;
}

.mv-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 2.2rem 2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid rgba(33,68,91,0.04);
}

.mv-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #21445b; /* tu color de marca */
}

.mv-card p {
    line-height: 1.7;
    color: #555;
}

/* responsive */
@media (max-width: 640px){
    .mission-vision { padding: 3rem 1.2rem; }
    .mv-card { padding: 1.8rem 1.4rem; }
}

.branches {
  max-width: 900px;
  margin: 2.5rem auto 0;
  text-align: left;
  display: grid;
  gap: 1.5rem;
}

.branches-title {
  font-size: 1.6rem;
  color: #21445b;
  margin-bottom: 0.5rem;
}

.branch-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  border: 1px solid rgba(33,68,91,0.03);
}

.branch-card h4 {
  margin-bottom: 0.4rem;
  color: #21445b;
}

.branch-card p {
  margin: 0;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 640px) {
  .branches {
    padding: 0 1rem;
  }
}
