/* 
** Cultura180 Stylesheet
** Following the brand manual specs
*/

:root {
    /* Colores primarios del manual de marca */
    --accent-color: #EB1C24; /* Rojo principal */
    --accent-dark: #CE181E; /* Rojo oscuro */
    --orange: #F26522; /* Naranja */
    --yellow: #F99D1C; /* Amarillo */
    --green: #2DA44A; /* Verde */
    --light-gray: #f5f5f5;
    --gray: #636466; /* Gris institucional */
    --dark-gray: #414042; /* Gris oscuro */
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    /* Usando la tipografía Montserrat según manual */
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

section {
    padding: 5rem 0;
}

.btn-primary {
    background-color: var(--orange); /* Cambiado de rojo a naranja */
    border-color: var(--orange);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e15a1a; /* Variante oscura del naranja para hover */
    border-color: #e15a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 101, 34, 0.2);
}

.navbar {
    padding: 1rem 0;
    background-color: var(--gray); /* Cambiado a gris del manual de marca REVISAR */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand-old img {
    height: 64px;
    max-height: 64px;
    /* Agregamos un fondo blanco para que sea visible con fondo gris */
    /* background-color: white; */
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-brand {
    position: relative; /* Necesario para posicionar logos hijos absolutamente */
    display: inline-block; /* Para que tome dimensiones */
    height: 64px; /* Altura inicial del logo más grande */
    /* width: auto; o un ancho fijo si es necesario */
    transition: height 0.3s ease; /* Transiciona la altura del contenedor */
    vertical-align: middle; /* Ayuda a alinear verticalmente si hay texto al lado */
}

.navbar-brand img { /* Estilo base para AMBOS logos */
    position: absolute; /* Posicionar uno encima del otro */
    top: 50%; /* Centrar verticalmente */
    left: 0;
    transform: translateY(-50%); /* Ajuste fino centrado vertical */
    height: 100%; /* Llenar la altura del contenedor .navbar-brand */
    width: auto;  /* Mantener proporción */
    max-height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Transicionar opacidad y escala */

    /* Mantén estos estilos si los necesitas para el fondo blanco */
    /* background-color: white; */
    /* padding: 5px;
    border-radius: 5px;*/
}

.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    color: white; /* Cambiado para mejor contraste con fondo gris */
    margin: 0 0.5rem;
    position: relative;
}

.nav-link:hover {
    color: var(--yellow); /* Cambiado para mejor visibilidad con fondo gris */
}

.hero {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about {
    background-color: var(--light-gray);
    position: relative; /* Para posicionamiento de marca de agua */
}

/* Estilos para la sección con marca de agua */
.watermark-section {
    position: relative;
    overflow: hidden;
}

/* Marca de agua con el logotipo. Comentar o eliminar este bloque 
   para eliminar la marca de agua */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background-image: url("/assets/img/logotipo/2025-CULTURA180_LOGOTIPO-FONDO-GRIS-BAJA.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative; /* Para que esté por encima de la marca de agua */
    z-index: 1;
}

.core-values {
    margin-top: 2rem;
    position: relative; /* Para que esté por encima de la marca de agua */
    z-index: 1;
}

.core-values li {
    margin-bottom: 0.75rem;
}

.services {
    background-color: white;
}

.service-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Utilizando los colores del manual para los iconos de servicio */
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Colorear diferentes iconos según el manual de marca */

.service-icon.red {
    background-color: rgba(235, 28, 36, 0.1);
    color: var(--accent-color);
  }
  
  .service-icon.orange {
    background-color: rgba(242, 101, 34, 0.1);
    color: var(--orange);
  }
  
  .service-icon.yellow {
    background-color: rgba(249, 157, 28, 0.1);
    color: var(--yellow);
  }
  
  .service-icon.green {
    background-color: rgba(45, 164, 74, 0.1);
    color: var(--green);
  }

.products {
    background-color: var(--light-gray);
}

.product-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Aplicando colores del manual a los botones de productos */
.btn-outline-danger {
    color: var(--orange); /* Cambiado de rojo a naranja */
    border-color: var(--orange);
}

.btn-outline-danger:hover {
    background-color: var(--orange); /* Cambiado de rojo a naranja */
    border-color: var(--orange);
    color: white;
}

.contact {
    background-color: white;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

footer {
    background-color: var(--dark-gray); /* Usando el gris oscuro institucional */
    color: white;
    padding: 3rem 0;
}

footer img {
    max-height: 40px; /* Controlar el tamaño del logo en el footer */
}

/* Estilo para los enlaces de redes sociales en el footer */
#footer a {
    color: white;
    margin: 0 1rem; /* Aumentado el espacio entre iconos */
    transition: all 0.3s ease;
    display: inline-block; /* Asegura que el espaciado se aplique correctamente */
}

#footer a:hover {
    color: var(--orange); /* Cambiado a naranja al hacer hover */
    transform: scale(1.1); /* Pequeña animación al hacer hover */
}

.copyright {
    margin-top: 2rem;
    color: #aaa;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Alternancia de logos en navbar */
.logo-full {
    opacity: 1;  /* Visible inicialmente */
    transform: translateY(-50%) scale(1); /* Estado inicial */
    z-index: 2; /* Asegura que esté encima inicialmente */
}

.logo-icon {
    opacity: 0;  /* Oculto inicialmente */
    transform: translateY(-50%) scale(0.9); /* Empieza un poco más pequeño */
    z-index: 1; /* Detrás inicialmente */
    /* No necesita 'display: none' */
     /* La altura se controla por el contenedor y 'height: 100%' */
}
  
.navbar.scrolled .navbar-brand {
    height: 48px; /* Altura del contenedor reducida */
}

.navbar.scrolled .logo-full {
    opacity: 0; /* Ocultar el logo completo */
    transform: translateY(-50%) scale(0.9); /* Escalar un poco al ocultarse */
    z-index: 1; /* Pasa detrás */
}

.navbar.scrolled .logo-icon {
    opacity: 1; /* Mostrar el isologo */
    transform: translateY(-50%) scale(1); /* Escala normal al mostrarse */
    z-index: 2; /* Pasa al frente */
}

  .navbar.scrolled .navbar-brand img {
    height: 48px;
  }
  
/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-img {
        margin-top: 3rem;
    }
    
    .about-img {
        margin-top: 3rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .service-card, .product-card {
        margin-bottom: 2rem;
    }

    /* Ajustar el tamaño de la marca de agua en móviles */
    .watermark {
        width: 80%;
        height: 80%;
    }
}