:root {
    --bg-crema: #faf3ed;
    --accent: #a80002;
    --accent-trans: rgba(191, 16, 11, 0.96);
    --metallic: #5e5e5e;
    --text-dark: #333333;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --link: #a80002;
    --link-footer: #a80002;
}
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Corta cualquier cosa que intente salir por la derecha */
    position: relative;
}

* { margin:0; padding:0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Georgia','Inter', sans-serif; background: var(--bg-crema); color: var(--text-dark); overflow-x: hidden; padding-top: 100px; }

/*------ LINKS ------*/
/* Estado inicial y links visitados */
a, a:visited {
    color: var(--link);
    text-decoration: none; /* Quita el subrayado por defecto */
    transition: color 0.3s ease; /* Animación suave */
}

/* Estado al pasar el ratón (Hover) y al hacer clic (Active) */
a:hover, a:active {
    color: var(--link); /* O puedes oscurecerlo un poco si prefieres */    
    opacity: 0.8; /* Un ligero cambio visual */
}

/* Estilos específicos para el Footer */
footer a, .footer-link {
    color: var(--link-footer);
}

footer a:hover {
    color: var(--link);
    opacity: 0.7; /* El 70% de intensidad lo hace ver más elegante */
    transition: opacity 0.3s ease; /* Transición suave */
}
/*Animado-----------*/
/* Solo se activa si el enlace tiene la clase "link-animado" */
a.link-animado {
    color: var(--link);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    display: inline-block; /* Asegura que la animación se vea bien */
}

a.link-animado::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--link);
    transition: width 0.3s ease-in-out;
}

a.link-animado:hover::after {
    width: 100%;
}

/* Estado hover para el texto (opcional) */
a.link-animado:hover {
    color: var(--link); /* Mantiene el color o puedes variarlo */
}

/* Header Fijo */
.main-header { 
    height: 100px; 
    background-size: cover; 
    display: flex; 
    align-items: center; 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 2000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}
.nav-container { width: 90%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 70px; width: auto; }

/* Menú Desktop */
.nav-menu { display: flex; list-style: none; align-items: center; }
.nav-menu a { 
    color: white; 
    text-decoration: none; 
    margin-left: 2rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
    display: flex; 
    align-items: center; 
    gap: 8px;
}
/* Evita que Google Translate rompa el layout si inyecta spans o fuentes */
.nav-menu > font, 
.nav-menu > span {
    display: none !important;
}

/* 1. Aseguramos que los enlaces sean flex para alinear icono y texto */
.nav-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px; /* Espacio entre icono y texto */
    text-decoration: none;
}

/* 2. Reparamos las etiquetas <font> que mete Google */
.nav-menu font, 
.nav-menu span {
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center;
}

/* 3. Evitamos que los iconos de Material Icons se muevan */
.nav-menu .material-icons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Ajusta según tu diseño */
}

/* 4. Limpieza de nodos vacíos que mete el traductor */
.nav-menu br {
    display: none !important;
}
.nav-phone { border: 1px solid white; padding: 5px 15px; border-radius: 20px; }
.material-icons { font-size: 20px; vertical-align: middle; }

/* Menú Móvil Fullscreen Rojo */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 3000; position: relative; }
.bar { width: 30px; height: 3px; background: white; transition: 0.3s; }

.translate{
    display: flex;    
    justify-content: center;
    align-items: center;
    gap: 3px;
}
/* Estado inicial */
.translate a {
    display: inline-block; /* Importante: transform no funciona en elementos 'inline' puros */
    transition: transform 0.3s ease; /* Controla la velocidad (0.3s) y suavidad */
    text-decoration: none; /* Opcional: quita el subrayado */
}

/* Estado con Zoom */
.translate a:hover {
    transform: scale(1.2); /* 1.0 es el tamaño original, 1.2 es un 20% de zoom */
}


@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .nav-menu { 
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 100%; 
        height: 100vh; 
        background: var(--accent-trans); 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        transition: 0.5s ease-in-out; 
        z-index: 2500;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { width: 85%; margin: 15px 0; }
    .nav-menu a { 
        font-size: 1.6rem; 
        color: white; 
        margin: 0; 
        padding: 25px; 
        border: 1px solid rgba(255,255,255,0.2); 
        border-radius: 15px; 
        justify-content: center; 
        width: 100%;
    }
    .nav-menu a .material-icons { font-size: 35px; }

    .translate {	
	
	margin: 0 auto;
}

.translate a{
    border: none;
}
}

/* Slider */
.hero-slider { position: relative; height: 50vh; overflow: hidden; }
.slider-wrapper { height: 100%; width: 100%; position: relative; }
.slide { position: absolute; top:0; left:0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.slide.active { opacity: 1; }
.slide-info h2 { font-size: 3.5rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.progress-bar { width: 0%; height: 5px; background: var(--accent); position: absolute; bottom: 0; transition: none; }
/* Capa negra para mejorar legibilidad */
.slide.overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.slide-info {
    position: relative;
    z-index: 2; /* Por encima de la capa negra */
}

/* Estilos para los Bullets */
.slider-bullets {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.bullet.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* El slider-wrapper ahora debe asegurar que el cursor cambie al hover */
.hero-slider:hover {
    cursor: grab;
}

/* Info Corporativa */
.info-corporativa { padding: 20px 5%; background: white; }
.container-text { max-width: 1200px; margin: 0 auto; }
.main-subtitle { font-size: 2.2rem; border-left: 5px solid var(--accent); padding-left: 20px; color: var(--text-dark); }
.section-title {border-left: 5px solid var(--accent); padding-left: 20px; color: var(--text-dark);margin-bottom: 40px;}
.main-subtitle h1{
    margin: 0;
}
/* 1. Por defecto (Móvil): Una sola columna y menos espacio */
.info-grid { 
    display: grid; 
    grid-template-columns: 1fr; /* Una columna ocupa todo */
    gap: 20px; /* Reducimos el espacio en móvil */
    width: 100%;
}

/* 2. Para Desktop (PC): Restauramos tus 2 columnas */
@media (min-width: 992px) {
    .info-grid { 
        grid-template-columns: 2fr 1fr; 
        gap: 50px; 
    }
}

/* 3. Ajuste en .info-text */
.info-text { 
    width: 100%; /* Mejor al 100% para que el contenedor .centrado o el grid manden */
    
}
.info-sidebar{
     width: 100%; /* Mejor al 100% para que el contenedor .centrado o el grid manden */
   

}
@media (min-width: 992px) {
/* 3. Ajuste en .info-text */
.info-text { 
    width: 100%; /* Mejor al 100% para que el contenedor .centrado o el grid manden */
    overflow-x: hidden;
}
.info-sidebar{
     width: 100%; /* Mejor al 100% para que el contenedor .centrado o el grid manden */
    overflow-x: hidden;

}
}

/* 4. Asegúrate de que las cajas no tengan anchos fijos */
.highlight-box { 
    background: var(--bg-crema); 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    border: 1px dashed var(--accent); 
    width: 100%; /* Que se adapte al ancho de la columna */
}
.info-text h3 { margin: 25px 0 10px; color: var(--accent); }
.info-text p { line-height: 1.7; margin-bottom: 15px; text-align: justify; }

.sidebar-card { background: var(--text-dark); color: white; padding: 25px; border-radius: 12px; margin-bottom: 20px; }
.sidebar-card a { color: white; text-decoration: none; font-size: 1.2rem; font-weight: bold; }
.sidebar-list ul { list-style: none; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }

/* Estilo mejorado para el Breadcrumb */
.breadcrumb { 
    color: var(--accent); 
    font-size: 0.85rem; 
    font-weight: 500;    
    letter-spacing: 1px;
    margin-bottom: 15px; /* Espacio hacia el título H1 */
    padding-bottom: 10px; /* Espacio entre el texto y la línea */
    border-bottom: 1px solid rgba(191, 16, 11, 0.2); /* Línea roja suave */
    display: inline-block; /* Para que la línea solo ocupe lo que ocupa el texto */
    width: auto;
}


/* Grid Productos */
.container { padding: 40px 5%; max-width: 1400px; margin: 0 auto; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); text-align: center; padding-bottom: 25px; }
.product-card img { width: 100%; height: 250px; object-fit: cover;margin-bottom: 10px; }
.btn-metallic { background: linear-gradient(145deg, #7a7a7a, #4a4a4a); color: white; padding: 10px 25px; text-decoration: none; border-radius: 50px; display: inline-block; margin-top: 15px; }

@media (max-width: 768px) {
    .product-card { width: 98%; margin: 0 auto; }
    .info-grid { grid-template-columns: 1fr; }
    .slide-info h2 { font-size: 2.2rem; }
}

/* Footer Original */
.main-footer { background: url('https://www.nogis.es/images/bg_bot.jpg') repeat; padding: 60px 0 20px 0; border-top: 5px solid var(--accent); position: relative; }
.footer-wrapper { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding: 0 5%; }
.footer-col h3 { color: var(--accent); margin-bottom: 20px; text-transform: uppercase;text-align: center; }
.horario-list { list-style: none; font-size: 0.9rem; margin-top: 15px; color: var(--text-dark); }
.horario-list .title { font-weight: bold; color: var(--accent); }
.legal-links a { color: var(--text-dark); text-decoration: none; font-size: 0.8rem; }
.designer-link { color: var(--text-dark); font-size: 0.8rem; text-decoration: none; display: block; margin-top: 10px; }

/* Botón Ir Arriba */
.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--accent); cursor: pointer; display: none; align-items: center; justify-content: center; border-radius: 50%; z-index: 3000; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; }
.arrow-up { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid white; }

.reveal { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Aplicar a elementos al cargar */
.main-header { animation: fadeInUp 0.8s ease-out; }
.hero-slider { animation: fadeInUp 1s ease-out 0.2s backwards; }
.slide-info h2 { animation: slideInRight 1s ease-out 0.5s backwards; }


/* --- HOVER EN PRODUCTOS --- */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}


/*---HERRAMIENTAS--*/
ul {
    list-style: none;      /* Elimina el punto o icono por defecto */
    padding: 0;            /* Elimina el espacio a la izquierda */
    margin: 0;             /* Elimina márgenes exteriores */
}

.sello-calidad{
    display: block;
   margin: 0 auto !important;
}
.cert-img{
    display: block;  /* Obligatorio para que margin: auto funcione */
    margin: 0 auto;
    
}
#r-rcm {
    max-width: none !important;
}

/* Botón WhatsApp Fijo Izquierda */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Posicionado a la izquierda */
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Color oficial WhatsApp */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3500; /* Por encima de todo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    animation: whatsapp-pulse 2s infinite; /* Efecto pulso */
}

.whatsapp-fixed svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Animación de Pulso de Sombra (Glow) */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/*me siver para alinear objetos al centro*/
.alinear-vertical{
    display: flex;
    align-items: center;
    gap: 10px;
}
/*espacios de 10px*/
.espacio10{
    margin: 10px 0;
}

/* ---- IMAGENES ------*/
img {
           /* Ocupa todo el ancho del div */
    height: auto;      /* La altura se ajusta sola proporcionalmente */
    display: block;    /* Elimina espacios fantasma debajo de la imagen */
}
.foto{
    background-color: #fff;
    padding: 10px;
    
}
.izquierda p{
    max-width: 90%;
}
.izquierda img {
    display: block;           /* Alínea a la izquierda y deja que el texto suba */
    margin-top: 20px;     /* Espacio entre la imagen y el texto */
    margin-bottom: 10px;    /* Espacio si el texto baja por debajo */
    max-width: 100%;        /* Tu regla de seguridad */
    height: auto;           /* Mantiene relación de aspecto */
}

@media (min-width: 992px) {
    .izquierda img {
    float: left;            /* Alínea a la izquierda y deja que el texto suba */
    margin-right: 20px;     /* Espacio entre la imagen y el texto */
    margin-bottom: 10px;    /* Espacio si el texto baja por debajo */
    max-width: 100%;        /* Tu regla de seguridad */
    height: auto;           /* Mantiene relación de aspecto */
}
}
.img-sidebar{
    max-width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
    border-radius: 15px; /* Para darle un toque moderno */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Limpiar el float para que no afecte a lo que venga después del div */
.izquierda::after {
    content: "";
    display: table;
    clear: both;
}

.texto-side {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;

    /* Tamaño fluido: se ajusta al ancho de la pantalla automáticamente */
    font-size: 1.3rem; 
    
    /* Interlineado equilibrado */
    line-height: 1.3;

    /* Alineado natural: evita huecos blancos en medio de las frases */
    text-align: center; 

    /* Evita que las letras se separen (tracking) */
    letter-spacing: normal; 

    /* Para que el texto no se rompa en palabras pequeñas si no quieres */
    white-space: nowrap; 
}


/*CTA*/
/* Estilos específicos para el CTA */
.cta-contact {
    margin: 20px 5% 20px 5%;
    background: var(--bg-crema);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    border-bottom: 6px solid var(--accent);
    /* Crea un nuevo contexto de formato para cerrar el bloque correctamente */
    display: flow-root; 
    height: auto;
}

.cta-container {
    padding: 60px 30px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #faf3ed);
    /* Crea un nuevo contexto de formato para cerrar el bloque correctamente */
    display: flow-root; 
    height: auto;
}

.cta-tagline {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cta-text {
    max-width: 700px;
    margin: 0 auto 35px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    color: white !important;
}

.btn-phone {
    background: var(--accent);
}

.btn-whatsapp-cta {
    background: #25d366;
}

.btn-whatsapp-cta svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    opacity: 0.95;
}

/* Animación de entrada similar a la que ya tienes */
.cta-contact.reveal {
    animation: fadeInUp 1s ease-out;
}

@media (max-width: 768px) {
    .cta-title { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-cta { width: 100%; justify-content: center; }
}

/*PAGINAS HEADER*/
/* Estilo para Cabeceras de Página secundarias */
.page-header {
    position: relative;
    height: 300px; /* Mucho más pequeña que el slider de 50vh */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado oscuro para que el título blanco resalte */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.header-title {
    color: #ffffff;
    font-size: 3.5rem; /* Tamaño grande e impactante */
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin: 0;
    text-transform: uppercase;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .page-header {
        height: 200px;
    }
    .header-title {
        font-size: 2.2rem;
    }
}

/*BOTONES*/
/* Clase base: Botón rojo centrado y estático */
.boton-rojo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;      /* Se ajusta al texto */
    margin: 20px auto;      /* Centrado horizontal automático */
    padding: 12px 30px;
    background-color: var(--accent);
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.3s ease; /* Solo cambia la opacidad por defecto */
    border: none;
    cursor: pointer;
}

/* Efecto visual simple para el botón estático */
.boton-rojo:hover {
    opacity: 0.9;
}

/* Clase adicional: Activa el movimiento hacia arriba */
.boton-animado:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: var(--transition); /* Usa tu transición definida en el :root */
}



/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-fixed {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    .whatsapp-fixed svg {
        width: 28px;
        height: 28px;
    }
}

/* --- Configuraciones por defecto (Móvil: 1 columna) --- */
.cols-2, .cols-3, .cols-4, .cols-5, .cols-6 {
    grid-template-columns: 1fr;
}

/* --- Tablet (A partir de 768px: 2 columnas para casi todos) --- */
@media (min-width: 768px) {
    .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
    .cols-5, .cols-6 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Desktop (A partir de 1024px: Aplicamos tus clases) --- */
@media (min-width: 1024px) {
    .cols-2 { grid-template-columns: repeat(2, 1fr); }
    .cols-3 { grid-template-columns: repeat(3, 1fr); }
    .cols-4 { grid-template-columns: repeat(4, 1fr); }
    .cols-5 { grid-template-columns: repeat(5, 1fr); }
    .cols-6 { grid-template-columns: repeat(6, 1fr); }
}

.cta-contact .grid-container {
    /* Esto hace que cada columna solo ocupe su propia altura natural */
    align-items: start; 
}
.texto-lectura {
    line-height: 1.8;      /* Espacio amplio y elegante */
    margin-bottom: 20px;   /* Espacio entre párrafos */
    text-align: justify;
}
.padding-mio{
    padding: 20px;
}
.fondo-blanco{
    background-color: #fff !important;
}
.linea-abajo {
    position: relative; /* Necesario para posicionar la línea respecto al texto */
    padding-bottom: 10px; /* Espacio entre el texto y la línea */
    margin-bottom: 10px;
}

.linea-abajo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%; /* La mueve al centro */
    transform: translateX(-50%); /* Ajuste exacto para centrarla */
    width: 20%; /* El ancho que me pediste */
    height: 3px; /* El grosor que tenías */
    background-color: var(--accent); /* Tu color de acento */
    border-radius: 2px; /* Opcional: le da un toque redondeado en las puntas */
}
.centrado {        
        margin: 0 auto;
        display: block; /* Asegura que respete el margin: auto */
    }   