/*
    Theme Name: Vacaris
    Template: storefront
    Theme URI: https://vacaris.com
    Author: Aguila Digital
    Author URI: https://www.aguiladigital.cl
    Description: Tema creado para proyecto X empresas de gestion de eventos y otros
    Version: 1.1
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* 1. ESTRUCTURA BASE */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: black;
  /* Espacio superior para que el contenido no quede oculto bajo el nav fixed */
  padding-top: 80px; 
}

main {
  flex: 1;
}

header {
  position: relative;
  z-index: 9999;
  margin-bottom: 2rem;
  
}

/* 2. NAVBAR PRINCIPAL */
nav.navbar.bg-body-tertiary {
  margin-top: 0.5rem;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5000 !important;
  background: linear-gradient(
    to bottom,
    #FFF200 0%,   /* amarillo Ferrari arriba */
    #FFD700 50%,  /* dorado intermedio */
    #FFF200 100%  /* amarillo Ferrari abajo */
  ) !important;
  box-shadow:
    0 -6px 12px rgba(255, 40, 0, 0.6),   /* sombra superior rojo */
    0 6px 12px rgba(255, 40, 0, 0.6),    /* sombra inferior rojo */
    0 0 20px rgba(255, 40, 0, 0.8);      /* glow */
  border-radius: 0 0 8px 8px; /* Redondeado solo abajo para que encaje arriba */
  padding: 12px 24px;
  transition: all 0.3s ease;
}

/* 3. BOTÓN HAMBURGUESA (MÓVIL) */
.navbar-toggler {
  border: 2px solid #0303B5 !important; /* Borde azul profundo */
  background-color: rgba(255, 255, 255, 0.3); /* Fondo sutil para destacar */
}

/* Forzar el color de las rayitas a azul */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(3, 3, 181, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 4. LINKS Y NAVEGACIÓN */
.navbar-nav {
  display: flex;
  justify-content: center;
}

@media (min-width: 992px) {
  .navbar-nav {
    width: 90vw;
  }
}

nav.navbar.bg-body-tertiary .nav-link {
  color: #0303B5 !important; /* azul profundo */
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(255, 40, 0, 0.3);
  transition: all 0.3s ease-in-out;
  padding: 8px 15px;
}

nav.navbar.bg-body-tertiary .nav-link:hover {
  color: #FFF !important;
  background-color: #FF2800; /* rojo Ferrari */
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(255, 40, 0, 0.9);
}

/* 5. SUBMENÚS (DROPDOWN) */
.navbar-nav .dropdown-menu {
  background: linear-gradient(
    to bottom,
    #FF2800 0%, 
    #B22222 100%
  );
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 40, 0, 0.6);
}

/* Desktop Hover para Dropdown */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.navbar-nav .dropdown-menu .dropdown-item {
  color: #FFF200;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 20px;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: #0303B5;
  color: #FFF;
}

/* Ocultar flechita por defecto de Bootstrap */
.navbar-nav .dropdown-toggle::after {
  display: none !important;
}

/* 6. FOOTER */
footer {
  background-color: #FFF200;
  color: #0303B5;
  padding: 20px 0;
  text-align: center;
}

/* Estilos para la sección de Misión */
.mision-section {
  background-color: #f8f9fa; /* Fondo gris muy claro para contrastar con el negro */
  padding-top: 5rem;    /* Espacio superior dinámico */
  padding-bottom: 5rem; /* Espacio inferior dinámico */
}

.mision-section h2 {
  color: #0303B5; /* El azul profundo que definimos antes */
}

.mision-section .divider {
  height: 0.3rem;
  width: 4rem;
  background: linear-gradient(to right, #FF2800, #FFF200); /* Degradado Rojo-Amarillo */
  border-radius: 1rem;
}

.mision-image-container img {
  transition: transform 0.5s ease;
  border: 5px solid #FFF200; /* Borde amarillo para cohesión de marca */
}

.mision-image-container img:hover {
  transform: scale(1.02); /* Efecto sutil al pasar el mouse */
}

/* Ajuste para que el texto sea legible en pantallas pequeñas */
@media (max-width: 768px) {
  .mision-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
  }
  
  .mision-section .divider {
    margin: 0 auto; /* Centra la línea roja/amarilla en móvil */
  }
}

.vision-section {
  background-color: #ffffff; /* Fondo blanco puro */
  padding: 5rem 0;
}

.vision-section h2 {
  color: #0303B5; /* Azul profundo */
}

/* Divisor con los colores de la marca */
.divider-vision {
  height: 0.3rem;
  width: 5rem;
  background-color: #FF2800; /* Rojo Ferrari */
  border-radius: 1rem;
}

/* Círculo decorativo para el icono */
.vision-circle {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #0303B5 0%, #FF2800 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(3, 3, 181, 0.3);
  transition: all 0.4s ease;
}

.vision-circle:hover {
  transform: rotate(10deg) scale(1.1);
}

.color-ferrari {
  color: #FF2800;
}

/* Ajuste de tipografía para la visión */
.vision-section p.lead {
  color: #444;
  border-left: 4px solid #FFF200; /* Detalle amarillo */
  padding-left: 1.5rem;
}

@media (max-width: 991px) {
  .vision-section {
    text-align: center;
    padding: 3rem 0;
  }
  .vision-section p.lead {
    border-left: none;
    border-top: 4px solid #FFF200;
    padding-left: 0;
    padding-top: 1rem;
  }
}

/* Colores de marca */
.text-azul-profundo { color: #0303B5; }
.bg-ferrari-yellow { background-color: #FFF200; }

.contacto-page {
    background-color: #fcfcfc;
    min-height: 80vh;
}

/* Divisor bajo el título */
.divider-center {
    height: 0.4rem;
    width: 6rem;
    background: linear-gradient(to right, #FF2800, #FFF200);
    margin: 1.5rem auto;
    border-radius: 10px;
}

/* Estilo de la "Card" del formulario */
.card-contacto {
    background: white;
    border-radius: 15px;
    border-left: 8px solid #FF2800; /* Detalle Rojo Ferrari */
}

/* Estilizar campos de Contact Form 7 */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.wpcf7-form-control:focus {
    border-color: #0303B5;
    outline: none;
    box-shadow: 0 0 8px rgba(3, 3, 181, 0.2);
}

/* El botón de enviar (Submit) */
.wpcf7-submit {
    background: linear-gradient(to right, #0303B5, #00008B) !important;
    color: white !important;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    width: 100%;
}

.wpcf7-submit:hover {
    background: #FF2800 !important; /* Cambia a Rojo al pasar el mouse */
    box-shadow: 0 5px 15px rgba(255, 40, 0, 0.4);
    transform: translateY(-2px);
}

/* Imagen con efecto */
.shadow-ferrari {
    box-shadow: 0 10px 30px rgba(255, 40, 0, 0.2);
    border: 3px solid #FFF200;
}

.contacto-img-wrapper img {
    transition: transform 0.5s;
}

.contacto-img-wrapper:hover img {
    transform: scale(1.03);
}

/* --- PAGINA DE PRODUCTO WOOCOMMERCE --- */

/* Contenedor principal del producto */
.single-product div.product {
    margin-top: 2rem;
    
}

/* 1. Estilo de la Imagen del Producto */
.single-product div.product .woocommerce-product-gallery img {
    border: 4px solid #FFF200; /* Borde amarillo */
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 40, 0, 0.2); /* Sombra roja sutil */
    transition: transform 0.3s ease;
}

.single-product div.product .woocommerce-product-gallery img:hover {
    transform: scale(1.02);
}

/* 2. Título del Producto */
.single-product div.product .product_title {
    color: #0303B5 !important; /* Azul profundo */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2.5rem;
}

/* 3. Precio */
.single-product div.product .price {
    color: #FF2800 !important; /* Rojo Ferrari */
    font-size: 1.8rem;
    font-weight: 800;
}

/* 4. Botón Añadir al Carrito */
.single-product div.product .button.alt {
    background-color: #0303B5 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

.single-product div.product .button.alt:hover {
    background-color: #FF2800 !important; /* Cambio a rojo */
    box-shadow: 0 5px 15px rgba(255, 40, 0, 0.4);
}

/* 5. Tabs (Descripción, Información adicional) */
.woocommerce-tabs ul.tabs li.active a {
    color: #0303B5 !important;
}

.woocommerce-tabs ul.tabs li.active {
    border-top-color: #FF2800 !important; /* Línea roja superior en tab activa */
}

/* 6. Etiquetas y Categorías */
.product_meta {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.product_meta a {
    color: #0303B5;
    font-weight: bold;
}

/*nuevo*/
/* Limitar el tamaño de la galería de imágenes */
.single-product .woocommerce-product-gallery {
    max-width: 400px !important; /* Ajusta este valor al tamaño que desees */
    margin: 0 auto 2rem auto !important; /* La centra y le da aire abajo */
    float: none !important; /* Evita que Storefront la flote raro en móvil */
}

/* Estilo para que la imagen no se vea "estirada" */
.woocommerce-product-gallery__image--placeholder img,
.woocommerce-product-gallery__wrapper img {
    width: 400px !important;
    height: auto !important;
    border-radius: 15px;
    border: 3px solid #FFF200; /* Borde amarillo de tu marca */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* ================================================================
   CATÁLOGO DE PRODUCTOS (SISTEMA ORIGINAL WOOCOMMERCE)
   ================================================================ */

/* 1. Fondo y Espaciado del Contenedor Principal */
.archive.tax-product_cat #content,
.archive.post-type-archive-product #content {
    background-color: #000 !important; /* Mantiene el fondo negro del body */
    padding-top: 140px !important;    /* Espacio para el navbar fijo */
    padding-bottom: 80px !important;
}

/* 2. Estilo de la "Tarjeta" nativa */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    padding: 1.5rem !important;
    border-radius: 15px !important;
    border-bottom: 6px solid #0303B5 !important; /* Azul Profundo */
    box-shadow: 0 8px 20px rgba(0,0,0,0.5) !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
}

/* Efecto Hover: Cambia a Rojo Ferrari */
.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important;
    border-bottom-color: #FF2800 !important;
}

/* 3. Títulos de Productos en la Grilla */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #0303B5 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 1.1rem !important;
    margin-top: 15px !important;
}

/* 4. Precio en la Grilla */
.woocommerce ul.products li.product .price {
    color: #FF2800 !important; /* Rojo Ferrari */
    font-weight: bold !important;
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
}

/* 5. Imagen del Producto (Borde Amarillo Marca) */
.woocommerce ul.products li.product img {
    border: 3px solid #FFF200 !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
}

/* 6. Botones de Acción (Añadir al carrito / Ver más) */
.woocommerce ul.products li.product .button {
    background-color: #0303B5 !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    border: none !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #FF2800 !important;
    box-shadow: 0 4px 12px rgba(255, 40, 0, 0.4) !important;
}

/* 7. Título de la Categoría y Breadcrumbs */
.woocommerce-products-header__title.page-title {
    color: #FFF200 !important; /* Amarillo para resaltar sobre negro */
    text-align: center;
    font-weight: 900;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.woocommerce-breadcrumb {
    color: #ffffff !important;
    margin-bottom: 20px !important;
}

.woocommerce-breadcrumb a {
    color: #FFF200 !important;
}