/* General reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
  }
  


  /* --- CONTENEDOR BASE --- */


/* =========================================
   NAVBAR UNIFICADO (INDEX + INTERNAS)
   ========================================= */

/* --- 1. Estructura Base --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 0; 
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

/* Estado al hacer Scroll o en Página de Contacto */
.navbar.scrolled, 
.navbar.navbar-interna {
    background-color: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ancho-navbar {
    max-width: 1200px;
    height: 90px; 
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    transition: height 0.3s ease;
}

/* --- 2. Logo --- */
.navbar .logo img {
    max-height: 70px; 
    width: auto;
    display: block;
    transition: max-height 0.3s ease;
}

/* --- 3. Navegación Escritorio --- */
.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar nav ul li a {
    text-decoration: none;
    font-size: 16px;
    color: white; /* Blanco para el video */
    font-weight: bold;
    transition: color 0.3s;
}

/* Cambio de color de links cuando el fondo es blanco */
.navbar.scrolled nav ul li a,
.navbar.navbar-interna nav ul li a {
    color: #1a1a1a !important;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: #a51a17 !important;
}

/* --- 4. Botón Hamburguesa --- */
.menu-toggle {
    display: none; /* Escondido en PC */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white; /* Por defecto para video */
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Barras negras para fondos blancos */
.navbar.scrolled .menu-toggle .bar,
.navbar.navbar-interna .menu-toggle .bar {
    background-color: #1a1a1a !important;
}

/* =========================================
   DISEÑO PÁGINA DE CONTACTO (CONTENIDO)
   ========================================= */

.contact-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px; /* Aire para el Nav de 90px */
    background-color: #f9f9f9; 
}

.contact-hero-brand {
    position: relative;
    width: 95%;
    max-width: 1200px;
    background-color: #a51a17;
    border-radius: 30px;
    padding: 80px 20px 140px 20px;
    text-align: center;
    color: white;
}

.contact-floating-box {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1050px;
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    z-index: 10;
}

.floating-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-form-section {
    width: 100%;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.form-image-col {
    position: relative;
}

/* =========================================
   RESPONSIVE UNIFICADO (MÓVIL)
   ========================================= */

@media (max-width: 992px) {
    .navbar .ancho-navbar {
        height: 80px !important;
    }

    .navbar .logo img {
        max-height: 55px !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    /* Menú Desplegable */
    .navbar nav {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: top 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
    }

    .navbar nav.active {
        top: 0;
    }

    .navbar nav ul {
        flex-direction: column;
        gap: 35px !important;
    }

    .navbar nav ul li a {
        font-size: 28px !important;
        color: #1a1a1a !important;
        font-weight: 800 !important;
    }

    /* Animación X */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Ajustes Contenido Contacto Móvil */
    .floating-container { grid-template-columns: 1fr; }
    .contact-form-container { grid-template-columns: 1fr; }
    .contact-floating-box { position: relative; bottom: 0; transform: none; left: 0; margin-top: -50px; }
}

/* FIN NABVAR */


  
/* =========================================
   SECCIÓN HERO (VIDEO PORTADA) - ACTUALIZADO
   ========================================= */

.contenedor-video {
    position: relative;
    width: 100%;
    height: 100vh; /* Pantalla completa */
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
}

/* Forzar el video a cubrir todo el fondo */
.contenedor-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* Capa oscura (Overlay) mejorada para resaltar texto blanco */
.contenedor-video .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

/* Contenedor de Textos */
.contenedor-video .texto-superior {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 3;
    width: 90%;
    max-width: 1000px;
}

/* Subtítulo rojo (Tagline) */
.tagline {
    display: block;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 13px;
    font-weight: 800;
    color: #a51a17;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease forwards;
}

/* Título Principal (Blanco Sólido) */
.contenedor-video h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 25px 0;
    letter-spacing: -2px;
    color: #ffffff;
    animation: fadeInUp 1s ease forwards;
}

/* Palabra "Domótica" (Sólida, sin borde) */
.contenedor-video h1 span {
    display: block;
    color: #ffffff;
    -webkit-text-stroke: 0; /* Eliminado el borde */
    margin-top: 5px;
}

/* Párrafo descriptivo */
.contenedor-video p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto 45px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    animation: fadeInUp 1s ease forwards 0.3s;
}

/* Botón Estilo Outline Redondeado */
.btn-primary {
    display: inline-block;
    padding: 16px 45px;
    background-color: transparent; /* Fondo transparente */
    color: #ffffff;
    border: 2px solid #a51a17; /* Borde rojo */
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px; /* Forma de píldora */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: fadeInUp 1s ease forwards 0.5s;
    opacity: 0;
}

.btn-primary:hover {
    background-color: #a51a17; /* Se rellena al pasar el mouse */
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 0, 0, 0.4);
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajustes para Móviles */
@media (max-width: 768px) {
    .contenedor-video h1 {
        font-size: 3.2rem;
    }
    .btn-primary {
        width: 85%; /* Más fácil de presionar en pantallas pequeñas */
        padding: 15px 20px;
    }
}

/* =========================================
   SECCIÓN: GRILLA DE SERVICIOS (FULL WIDTH)
   ========================================= */

.grid-container-dimension {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el header y la grilla horizontalmente */
    background-color: #ffffff;
    padding: 100px 0;
    box-sizing: border-box;
}

.grid-header {
    width: 90%;
    max-width: 1000px; /* Ancho ideal para lectura en escritorio */
    text-align: center;
    margin-bottom: 70px;
    padding: 0 20px;
}

/* Subtítulo rojo (Tagline) */
.grid-subtitle {
    display: block;
    color: #a51a17;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

/* Título H1 Principal con pesos mixtos */
.grid-container-dimension h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300; 
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.grid-container-dimension h1 span {
    font-weight: 800;
}

/* El H3 descriptivo */
.grid-container-dimension h3 {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Línea decorativa roja */
.title-underline {
    width: 50px;
    height: 3px;
    background-color: #a51a17;
    margin: 30px auto 0;
    border-radius: 2px;
}

/* --- Configuración de la Grilla (4 columnas en escritorio) --- */
.grid-container {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 40px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Item de la grilla */
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4 / 5;
    background-color: #000;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Overlay Premium */
.grid-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s ease;
    text-align: left;
}

/* Efectos de Hover */
.grid-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.grid-item:hover .overlay {
    opacity: 1;
}

.overlay h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.overlay h2::before {
    content: "";
    display: block;
    width: 25px;
    height: 3px;
    background-color: #a51a17;
    margin-bottom: 12px;
}

.overlay p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px !important;
    line-height: 1.5;
    margin: 0 !important;
    transform: translateY(30px);
    transition: transform 0.5s ease 0.1s;
}

.grid-item:hover h2, 
.grid-item:hover p {
    transform: translateY(0);
}

/* --- Ajustes Responsive --- */
@media (max-width: 1100px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 650px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .grid-container-dimension h1 {
        font-size: 30px;
    }
    .grid-header {
        margin-bottom: 40px;
    }
}

/* --- Ajustes Responsive --- */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-container-dimension {
        padding: 60px 15px;
    }
    .grid-container-dimension h1 {
        font-size: 28px;
    }
    .grid-container {
        grid-template-columns: 1fr; /* Una sola columna en móviles muy pequeños */
        gap: 15px;
    }
}


/*     servicio section    */ 


.cs-services-section {
  padding: 20px 0 40px 0;
  background: #1a1a1a;
  color: white;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.cs-container {
  max-width: 1200px;
  margin: auto;
}

.cs-header {
  text-align: center;
  margin-bottom: 60px;
}

.cs-header h3 {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
}

/* Grilla */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px; /* Espacio para el botón de abajo */
}

/* Tarjetas */
.cs-card {
  background: black;
  padding: 40px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-card:hover {
  transform: translateY(-10px);
  background: #1b0700;
  border: 1px solid rgba(255, 0, 0, 0.5);
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
}

/* --- Control de Iconos Locales --- */
.cs-icon {
  width: 50px; /* Tamaño del contenedor */
  height: 50px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Opcional: un fondo tenue para resaltar el icono */
  background: rgba(255, 0, 0, 0.05); 
  border-radius: 12px;
  padding: 10px;
}

.cs-icon img {
  width: 100%; /* El icono ocupa todo el contenedor */
  height: 100%;
  object-fit: contain; /* Evita que la imagen se deforme */
}

.cs-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cs-card p {
  color: #a0a4ac;
  line-height: 1.6;
  font-size: 15px;
}

/* --- Botón "Ver más" y Flecha --- */
.cs-more-services {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cs-arrow {
  font-size: 24px;
  color: #a51a17;
  animation: bounce 2s infinite; /* Animación de rebote */
}

.cs-btn-more {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: white;
  border: 2px solid #a51a17;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cs-btn-more:hover {
  background: #a51a17;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
  transform: scale(1.05);
}

/* Animación de la flecha */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}
/* Fin servicio section */
  


/* proyectos section */ 
.portfolio-section {
    background-color: #000000;
    padding: 50px 0 100px 0;
    color: white;
}

.portfolio-container {
    max-width: 1300px; /* Un poco más ancho para que luzca la horizontal */
    margin: 0 auto;
}

.portfolio-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: left;
    letter-spacing: -1px;
}

/* --- Grilla Bento --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    grid-auto-rows: 320px; /* Altura de las filas */
    gap: 20px;
    margin-bottom: 60px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: #111;
}

/* 1. Imagen Superior (Horizontal) */
.item-large {
    grid-column: span 3; /* Ocupa las primeras 3 columnas */
    grid-row: span 1;
}

/* 2. Imagen Derecha (Vertical) */
.item-tall {
    grid-column: span 1; /* Ocupa la última columna */
    grid-row: span 2;    /* Ocupa las dos filas de alto */
}

/* 3. Imagen Inferior Izquierda (La que quieres expandir) */
/* Agrega esta clase en tu HTML a la tercera imagen */
.item-wide {
    grid-column: span 2; /* Ocupa 2 columnas para rellenar el espacio */
    grid-row: span 1;
}

/* 4. Imagen Inferior Central (Ocupará el espacio restante) */
/* Esta se ajustará automáticamente a 1 columna de ancho */


/* --- Efectos de Imagen y Hover --- */
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-loc {
    color: #a51a17;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.portfolio-overlay h4 {
    font-size: 24px;
    margin: 0;
}

/* --- Footer y Botón (Reutilizando tus estilos) --- */
.portfolio-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- Responsive (Ajustado para las nuevas proporciones) --- */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }
    /* En tablet, la horizontal principal ocupa todo el ancho */
    .item-large { grid-column: span 2; }
    /* La vertical se vuelve cuadrada o rectangular simple */
    .item-tall { grid-row: span 1; }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        grid-auto-rows: 300px;
        gap: 15px;
    }
    .item-large, .item-tall { grid-column: span 1; grid-row: span 1; }
}
/* Fin proyecto section */ 



/* informacion banner cotiza */ 

/* Sección y Contenedor */
.cta-section {
  padding: 60px 32px;
  background-color: #ffffff;
}

.cta-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Tarjeta Roja */
.cta-card {
  position: relative;
  background: linear-gradient(135deg, #a51a17, #b30000);
  border-radius: 24px;
  padding: 20px 0 80px 0;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 25px 25px -12px rgba(179, 0, 0, 0.3);
}

/* Grilla de líneas blancas de fondo */
.background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  opacity: 0.1;
  pointer-events: none;
}

.background-grid span {
  border-left: 1px solid white;
}

/* Textos */
.cta-content {
  position: relative;
  z-index: 10;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.cta-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Botón con Icono Local */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color: #ffffff;
  color: #333;
  text-decoration: none;
  font-weight: 900;
  padding: 18px 44px;
  border-radius: 10px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.15);
}


.whatsapp-icon {
  width: 26px; /* Ajusta según el tamaño de tu imagen original */
  height: 26px;
  display: block;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: scale(0.97);
}

/* informacion banner cotiza */ 




/* Footer */ 

/* Estilo general del footer */
.footer {
  background-color: black;
  color: white;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  text-align: left;
}

/* Estilo del logo y botón */
.footer-logo {
  display: block;
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.footer-logo img {
  max-width: 250px;
  margin-bottom: 20px;
}

.footer-button {
  display: inline-block;
  padding: 10px 20px;
  color: black;
  background-color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.footer-button:hover {
  background-color: #d1d1d1;
}

/* Estilo de las secciones */
.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 10px 0;
}

.footer-section h3 {
  color: #a51a17;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section a {
  color: white;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

/* Estilo de los iconos sociales */
.social-links {
  display: flex;
  gap: 10px;
  justify-content:left;
}

.social-links a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.social-links a img:hover {
  transform: scale(1.2);
}

/* Línea inferior */
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 20px;
  padding-top: 10px;
  font-size: 14px;
  color: #777;
}

  /* fin footer */ 


/* informacion sobre el showroom */

.showroom-section {
    background-color: #000000;
    color: #ffffff;
    padding: 50px 20px;
}

.showroom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; /* Para móviles */
}

/* Imagen con bordes redondeados */
.showroom-image {
    flex: 1;
    min-width: 300px;
}

.showroom-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.1);
    display: block;
}

/* Contenido de texto */
.showroom-content {
    flex: 1;
    min-width: 300px;
}


.showroom-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 1000;
    line-height: 1.1;
    margin: 0;
}


.showroom-text {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0 0 0 50px;
}

/* Estadísticas sutiles */

.showroom-stats {
    display: flex;
    flex-wrap: wrap; /* Permite que el botón baje si no hay espacio */
    align-items: center;
    justify-content: flex-start;
    gap: 20px; /* Reducimos un poco más el espacio general */
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box; /* Asegura que el padding no sume al ancho */
}


/* Ajuste opcional para el botón cuando está dentro de las stats */
.btn-location {
    display: inline-block;
    padding: 12px 25px; /* Un poco más compacto para que quepa mejor */
    border: 2px solid #a51a17;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.4s ease;
    margin-left: 0; /* Esto empuja el botón al extremo derecho si hay espacio */
    flex-shrink: 1; 
}

.btn-location:hover {
    background-color: #a51a17;
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
    transform: translateY(-3px);
}

.stat-item strong {
    display: block; /* Esto obliga al número a ocupar toda su línea, mandando el texto abajo */
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-item span {
    display: block; /* También como bloque para asegurar la separación */
    color: #777;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

/* En móviles, queremos que el botón vuelva a ocupar todo el ancho si el espacio es poco */
@media (max-width: 600px) {
     .showroom-stats {
        gap: 15px; /* Gap más pequeño en móviles */
    }

    .stat-item {
        flex: 1 1 auto; /* Permite que los items crezcan un poco */
    }

    .btn-location {
        width: 100%; /* El botón ocupa todo el ancho en móviles para no salirse */
        text-align: center;
        margin-top: 10px; /* Espacio extra arriba cuando baja de línea */
        box-sizing: border-box;
    }
    
    /* Aseguramos que el contenedor padre no tenga desbordamiento */
    .showroom-section, .showroom-container {
        overflow: hidden;
    }

    .stat-item strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    }

   .stat-item span {
    color: #777;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    }
}

/* fin información sobre el showroom */ 


/* Carrusel productos */ 

:root {
  --card-w: 316px;
  --card-h: 600px;
}

body { background: #f5f5f5; font-family: sans-serif; }

.carousel-title {
  font-size: 2rem;
  font-weight: 300; /* Peso ligero para toque minimalista */
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0; /* Aseguramos que no empuje hacia arriba innecesariamente */
}


.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 2000px;
  overflow: hidden;
  height: 900px;
  padding-top: 60px;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: var(--card-h);
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  padding-top: 70px;
}

.card {
  position: absolute;
  width: var(--card-w);
  height: var(--card-h);
  background: white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;   /* opcional pero recomendado */
}

/* Clases de Estado Dinámicas */
.active {
  opacity: 1;
  transform: translateZ(250px);
  z-index: 10;
  pointer-events: auto;
}

/* Tarjetas laterales inmediatas */
.side-left {
  opacity: 0.8;
  /* Bajamos de -400px a -350px */
  transform: translateX(-350px) translateZ(50px) rotateY(25deg) scale(0.9);
  z-index: 5;
}

.side-right {
  opacity: 0.8;
  /* Bajamos de 400px a 350px */
  transform: translateX(350px) translateZ(50px) rotateY(-25deg) scale(0.9);
  z-index: 5;
}

/* Tarjetas de los extremos (las que se ven al fondo) */
.far-left {
  opacity: 0.4;
  /* Bajamos de -750px a -620px */
  transform: translateX(-620px) translateZ(-150px) rotateY(35deg) scale(0.8);
  z-index: 1;
}

.far-right {
  opacity: 0.4;
  /* Bajamos de 750px a 620px */
  transform: translateX(620px) translateZ(-150px) rotateY(-35deg) scale(0.8);
  z-index: 1;
}

/* Navegación */
.nav-buttons { margin-top: 80px; display: flex; gap: 25px; z-index: 20;}
.nav-buttons button {
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid #ddd; background: white; cursor: pointer;
  font-size: 1.5rem; transition: 0.3s;
}
.nav-buttons button:hover { background: #000; color: #fff; }


/* --- Carrusel Producto Optimizado --- */

.card {
  padding: 20px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.card-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Unificamos .card-media */
.card-media {
  position: relative;
  z-index: 1;
}

.card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Agrupamos propiedades comunes del efecto 3D */
.card-badge, 
.card-timer {
  position: absolute;
  z-index: 5;
  transform: translateZ(50px);
  color: #fff; /* Ambos usan texto blanco */
}

.card-badge {
  top: 15px;
  left: 15px;
  background: #a51a17;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
}

.card-timer {
  bottom: 15px;
  left: 15px;
  background: rgba(0,0,0,0.75);
  padding: 6px 10px;
  border-radius: 8px;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
}

.card-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.card-btn {
  margin-top: 15px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.card-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.card.active:hover {
  transform: translateZ(260px) scale(1.02);
}




/* Carrusel clientes header*/

.carousel-header {
    text-align: center;
    background-color: white;
}


.carousel-main-title {
    font-size: 36px;
    font-weight: 300; /* Ligera */
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -1px;
}

.carousel-main-title span {
    font-weight: 800; /* Negrita en la parte clave */
}

.title-underline {
    width: 50px;
    height: 3px;
    background-color: #a51a17;
    margin: 20px auto 0;
    border-radius: 2px;
}



  /* Carrusel clientes*/
  .carousel {
    position: relative;
    text-align: center;
    margin: 0 auto;
    overflow: hidden; /* Esto corta lo que se sale del ancho de la pantalla */
    width: 100%;      /* Ajuste automático al ancho del dispositivo */
    height: auto;
    padding: 60px 0;
    background-color: #ffffff;
}

.carousel-track {
    display: flex;
    width: max-content; /* El track mide lo que midan todos los logos juntos */
    animation: scroll-left 30s linear infinite;
}

.carousel-item {
    flex-shrink: 0;
    padding: 0 40px; /* Espaciado limpio entre logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 150px;    /* Tamaño fijo para controlarlos mejor */
    height: auto;
    filter: grayscale(100%); /* Efecto premium: blanco y negro */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se mueve exactamente la mitad (porque duplicamos los logos) */
        transform: translateX(-50%);
    }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .carousel h1 {
        font-size: 22px;
    }
    .carousel-item {
        padding: 0 20px; /* Menos espacio en móvil para ver más logos */
    }
    .carousel-item img {
        width: 100px; /* Logos más pequeños en celulares */
    }
}

/* fin carrousel clientes */



/* ------------contacto page ---------------*/ 
/* --- CONTENEDOR PÁGINA CONTACTO --- */
.contact-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    background-color: #f9f9f9; 
}

/* --- BANNER ROJO (1200px) --- */
.contact-hero-brand {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(135deg, #a51a17, #b30000);
    border-radius: 30px;
    padding: 80px 20px 140px 20px;
    text-align: center;
    color: white;
    box-sizing: border-box;
}

.hero-brand-content h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-brand-content p {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
}

/* --- CAJA BLANCA FLOTANTE --- */
.contact-floating-box {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1050px;
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    z-index: 10;
}

.floating-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.float-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
    color: #1a1a1a;
}

.float-icon {
    font-size: 22px;
    color: #a51a17;
    background: rgba(255,0,0,0.08);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.float-text strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
}

.float-text span {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* --- SECCIÓN MAPA --- */
.contact-map-section {
    width: 100%;
    margin-top: 100px;
    line-height: 0;
}

/* =========================================
   NAVBAR INTERNA (CONTACTO) + HAMBURGUESA
   ========================================= */

/* --- 1. ESTADO BASE (BLANCO FIJO) --- */
.navbar.navbar-interna {
    background-color: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
}

.navbar.navbar-interna .ancho-navbar {
    height: 90px !important; 
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.navbar.navbar-interna .logo img {
    max-height: 70px !important;
    filter: none;
    display: block;
}

/* --- 2. LINKS ESCRITORIO --- */
.navbar.navbar-interna nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar.navbar-interna nav ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a !important; /* Texto negro sobre blanco */
    transition: color 0.3s ease;
}

.navbar.navbar-interna nav ul li a:hover,
.navbar.navbar-interna nav ul li a.active {
    color: #a51a17 !important;
}


/* --- SECCIÓN FORMULARIO --- */
.contact-form-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    box-sizing: border-box;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.form-image-col img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-header h2 {
    font-size: 38px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.form-header h2 span {
    font-weight: 800;
}

.form-header p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.title-underline.left {
    width: 50px;
    height: 4px;
    background-color: #a51a17;
    margin-bottom: 40px;
}

.actual-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 15px;
    background-color: #fcfcfc;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #a51a17;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.05);
}

.btn-form-submit {
    background-color: #a51a17;
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-form-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
    background-color: #a51a17;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .floating-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .contact-floating-box {
        position: relative;
        bottom: 0;
        transform: none;
        left: 0;
        margin: -40px auto 0;
        width: 90%;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}


/*---------SERVICIO PAGE----------- */

/* --- HERO SECTION SERVICIOS --- */
.services-hero {
    background: radial-gradient(circle at center, #2a0a0a 0%, #1a1a1a 100%);
    padding: 150px 20px 80px 20px; /* Aire para el Nav */
    text-align: center;
    color: white;
}

.hero-content h1 { font-size: clamp(35px, 6vw, 55px); font-weight: 800; }
.hero-content h1 span { color: #a51a17; }
.hero-content p { color: #a0a4ac; max-width: 700px; margin: 0 auto 30px; font-size: 18px; }

/* --- CSS INDEPENDIENTE PARA PÁGINA SERVICIOS (Con prefijo sp-) --- */
.sp-services-section {
    background: white;
    padding: 80px 0 100px 0;
    color: white;
}

.sp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Grilla optimizada para los 11 elementos */
/* --- AJUSTE DE TARJETAS COMPACTAS (Página de Servicios) --- */

.sp-grid {
    display: grid;
    /* Bajamos el min-width a 280px para que quepan mejor en filas */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* Espacio entre tarjetas */
}

.sp-card {
    background: #000000;
    /* Reducimos el padding de 40px a 25px para ganar espacio */
    padding: 25px; 
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    /* Quitamos el height: 100% si quieres que cada una use solo lo que necesita, 
       o lo dejamos para que todas las de una misma fila midan lo mismo */
    height: auto; 
    transition: all 0.3s ease;
}

.sp-icon {
    width: 45px; /* Icono un poco más pequeño */
    height: 45px;
    margin-bottom: 15px; /* Menos margen inferior */
    background: rgba(255, 0, 0, 0.08);
    border-radius: 10px;
    padding: 8px;
}

.sp-card h4 {
    font-size: 19px; /* Texto un poco más pequeño */
    font-weight: 700;
    margin-bottom: 10px; /* Menos espacio bajo el título */
    color: #ffffff;
}

.sp-card p {
    color: #a0a4ac;
    line-height: 1.5;
    font-size: 14px; /* Tamaño de lectura óptimo para cards compactas */
    margin: 0;
}

/* Efecto Hover más sutil */
.sp-card:hover {
    transform: translateY(-5px); /* Sube menos para no chocar con la de arriba */
    background: #0a0a0a;
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.sp-icon { width: 50px; height: 50px; margin-bottom: 25px; background: rgba(255,0,0,0.1); border-radius: 12px; padding: 10px; }
.sp-icon img { width: 100%; height: 100%; object-fit: contain; }
.sp-card h4 { font-size: 22px; font-weight: 700; margin-bottom: 15px; }
.sp-card p { color: #a0a4ac; line-height: 1.6; font-size: 15px; flex-grow: 1; /* Alinea cards */ }


/*------------- BANNER SERVICIO -------------*/


/* --- CTA SECTION SERVICIOS --- */
.sp-cta-section {
    background: #e8e8e8; /* Fondo que coincide con la sección anterior */
    padding: 60px 20px 60px 20px;
}

.sp-cta-container {
    max-width: 1100px;
    margin: 0 auto;
}

.sp-cta-card {
    position: relative;
    background: linear-gradient(135deg, #a51a17, #b30000);
    padding: 80px 40px;
    border-radius: 20px; /* Bordes muy redondeados como en la foto */
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-cta-content {
    position: relative;
    z-index: 2;
}

.sp-cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sp-cta-text {
    color: white;
    font-size: 20px;
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* --- BOTÓN WHATSAPP TIPO "EXPERTO" --- */
.sp-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white; /* Azul acero como el de la referencia, o cámbialo a #ff0000 para marca */
    color: black;
    padding: 18px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.sp-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.sp-whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* --- EFECTO GRID (Opcional) --- */
.sp-background-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: space-around;
    opacity: 0.1;
}

.sp-background-grid span {
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .sp-cta-card {
        padding: 50px 25px;
        border-radius: 30px;
    }
    .sp-cta-title {
        font-size: 28px;
    }
}


/*------------- FIN BANNER SERVICIO -------------*/

/*---------FIN SERVICIO PAGE----------- */






/*---------NOSOTROS PAGE----------- */

/* --- HERO NOSOTROS --- */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/photos/office-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 90px;
}

.about-hero h1 {
    font-size: clamp(30px, 5vw, 45px);
    font-weight: 800;
}

.about-hero h1 span { color: #a51a17; }

/* --- SECCIÓN QUIENES SOMOS --- */
.about-split-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Estilo de Imagen con Badge */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #a51a17;
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(255,0,0,0.2);
}

.experience-badge span {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

/* Estilo de Texto */
.about-subtitle {
    color: #a51a17;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.about-text h2 span { font-weight: 800; }

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Features (Viñetas Pro) */
.about-features {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-dot {
    width: 10px;
    height: 10px;
    background: #a51a17;
    border-radius: 50%;
}

.feature-item p {
    margin: 0;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .experience-badge {
        right: 20px;
        bottom: 20px;
    }
}

/*---------FIN NOSOTROS PAGE----------- */