:root {
    --rojo: #8b181b;
    --azul: #00badb;
    --texto: #777;
    --oscuro: #333;
    --borde: #ededed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; color: var(--texto); line-height: 1.6; background-color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* TOP BAR */
.top-bar { background: var(--azul); color: #fff; padding: 10px 0; font-size: 13px; }
.top-bar a { color: #fff; text-decoration: none; }
.social-links a { margin-left: 15px; color: #fff; font-size: 16px; }

/* HEADER ALINEADO */
/* HEADER ESTILO STACK (LOGO ARRIBA, MENÚ ABAJO) */
.main-header { 
    background: #fff; 
    border-bottom: 1px solid var(--borde); 
    padding: 20px 0 0 0; /* Padding superior para el logo */
}

.header-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-row {
    margin-bottom: 20px;
    text-align: center;
}

.logo-section img { 
    max-height: 90px; /* El logo puede ser más grande ahora que tiene su propia fila */
    width: 75px; 
}

/* MENÚ CENTRADO */
#main-nav {
    width: 100%;
    border-top: 1px solid var(--borde);
    display: flex;
    justify-content: center;
}

.nav-menu { 
    display: flex; 
    list-style: none; 
    margin: 0;
    padding: 0;
}

.nav-menu li a { 
    padding: 15px 20px; 
    color: #444; 
    text-transform: uppercase; 
    font-size: 12px; /* Podemos subir un poco la fuente a 12px */
    font-weight: 700; 
    text-decoration: none; 
    white-space: nowrap; 
    transition: 0.3s;
    display: block;
}

.nav-menu li a:hover, .nav-menu li a.active { 
    color: var(--rojo);
    box-shadow: inset 0 -3px 0 var(--rojo); /* Línea decorativa inferior al pasar el mouse */
}

/* SECCIÓN FONDO COMPLETO */
.full-background-section {
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)), url('../img/contacto.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0;
}

/* GLASS CONTAINER (TRASLÚCIDO) */
.glass-container {
    background: rgba(255, 255, 255, 0.94);
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 900px;
    margin: 0 auto;
}

.info-header { text-align: center; margin-bottom: 35px; }
.info-header h1 { color: var(--oscuro); font-size: 32px; font-weight: 900; margin-bottom: 15px; }
.contact-item { display: inline-flex; align-items: center; margin: 0 20px; font-size: 15px; }
.contact-item i { color: var(--rojo); margin-right: 10px; }

/* FORMULARIO */
.input-field { width: 100%; padding: 14px; border: 1px solid #ddd; background: #fff; font-family: inherit; margin-bottom: 15px; }
.textarea { height: 140px; }
.captcha-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.captcha-input { max-width: 150px; margin-bottom: 0; }
.btn-submit { background: var(--rojo); color: #fff; padding: 16px 60px; border: none; font-weight: bold; text-transform: uppercase; cursor: pointer; display: block; margin: 20px auto 0; }

/* FOOTER Y SUBFOOTER */
footer { background: var(--rojo); color: #fff; padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-widget h4 { margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 8px; font-weight: 900; }
.footer-links { list-style: none; }
.footer-links li a { color: #fff; text-decoration: none; font-size: 13px; line-height: 2.5; }
.sub-footer { background: #333; color: #ccc; padding: 20px 0; text-align: center; font-size: 11px; }
:root {
    --rojo: #8b181b;
    --azul: #00badb;
    --texto: #777;
    --oscuro: #333;
    --borde: #ededed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; color: var(--texto); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.height-100 { height: 100%; display: flex; align-items: center; }
.text-center { text-align: center; }

/* TOP BAR */
.top-bar { background: var(--azul); color: #fff; padding: 10px 0; font-size: 13px; }
.toolbar-flex { display: flex; justify-content: space-between; align-items: center; }
.social-links a { margin-left: 15px; color: #fff; font-size: 16px; }

/* HEADER MEJORADO PARA PC */
.main-header { background: #fff; border-bottom: 1px solid var(--borde); padding: 15px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo-section img { max-height: 80px; width: auto; }

.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-menu li a { 
    padding: 10px 18px; 
    color: #444; 
    text-transform: uppercase; 
    font-size: 13px; 
    font-weight: 700; 
    white-space: nowrap; 
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--rojo); }

/* SECCIONES HOME */
.hero-home { height: 600px; background-size: cover; background-position: center; position: relative; }
.hero-title-area { color: #fff; max-width: 600px; }
.hero-title-area h1 { font-size: 50px; font-weight: 900; line-height: 1.1; }

.info-card-red {
    position: relative; /* Cambiado de absolute a relative */
    background: rgba(139, 24, 26, 0.9);
    color: #fff;
    padding: 40px;
    max-width: 500px;
    margin-top: 20px; /* Esto asegura que esté DEBAJO del título */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 5px solid var(--azul); /* Un detalle elegante que combina con tu marca */
}

.section-blue { background: var(--azul); color: #fff; padding: 50px 0; }
.section-blue h2 { font-size: 32px; font-weight: 700; margin-top: 10px; }

/* FEATURE BOX (CUADRO A LA IZQUIERDA) */
.feature-row { height: 550px; background-size: cover; background-position: center; }
.feature-box-left {
    background: rgba(255, 255, 255, 0.92);
    padding: 50px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feature-box-left h2 { color: var(--rojo); font-weight: 900; font-size: 28px; margin-bottom: 20px; }
.btn-ver-mas { 
    display: inline-block; 
    border: 1px solid #000; 
    color: #000; 
    padding: 10px 35px; 
    font-weight: bold; 
    font-size: 12px; 
    margin-top: 25px; 
}

/* FOOTER */
footer { background: var(--rojo); color: #fff; padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.sub-footer { background: #333; color: #ccc; text-align: center; padding: 20px 0; font-size: 11px; }
/* (Añadir esto a tu style.css anterior) */

.reasons-section { padding: 80px 0; background: #fff; }
.section-title { color: var(--oscuro); font-weight: 900; margin-bottom: 40px; text-transform: uppercase; }

.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.reason-item h4 { color: var(--azul); font-weight: bold; margin-bottom: 15px; font-size: 16px; }
.reason-item p { font-style: italic; font-size: 14px; }

.map-section { padding: 60px 0; background-size: cover; background-position: center; }
.contact-text-box { background: rgba(255,255,255,0.9); padding: 40px; flex: 1; max-width: 450px; }
.contact-text-box h2 { color: var(--rojo); font-weight: 900; margin-bottom: 20px; }
.map-container { flex: 1; margin-left: 30px; border: 5px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.header-flex { display: flex; align-items: center; justify-content: space-between; }
:root {
    --rojo: #8b181b;
    --azul: #00badb;
    --texto: #777;
    --oscuro: #393836;
    --borde: #ededed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; color: var(--texto); line-height: 1.6; background-color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.height-100 { height: 100%; display: flex; align-items: center; }
.text-center { text-align: center; }

/* TOP BAR */
.top-bar { background: var(--azul); color: #fff; padding: 10px 0; font-size: 13px; }
.toolbar-flex { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #fff; text-decoration: none; font-weight: bold; }
.social-links a { margin-left: 15px; color: #fff; font-size: 16px; }

/* HEADER Y MENÚ INLINE */
.main-header { background: #fff; border-bottom: 1px solid var(--borde); padding: 10px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-section img { max-height: 75px; width: auto; }
.nav-menu { display: flex; list-style: none; }
.nav-menu li a { padding: 10px 18px; color: #444; text-transform: uppercase; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-menu li a:hover, .nav-menu li a.active { color: var(--rojo); }

/* SECCIÓN HERO (CUADRO ROJO A LA DERECHA) */
.hero-home { height: 600px; background-size: cover; background-position: center; position: relative; }
.hero-title-area { color: #fff; max-width: 600px; }
.hero-title-area h1 { font-size: 50px; font-weight: 900; line-height: 1.1; }
.info-card-red { position: absolute; right: 0; background: rgba(139, 24, 26, 0.88); color: #fff; padding: 50px; max-width: 460px; }
.btn-card { display: inline-block; border: 2px solid #fff; color: #fff; padding: 10px 20px; font-weight: bold; text-decoration: none; margin-top: 15px; }
.hero-home .container {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: flex-start; /* Alinea a la izquierda */
    height: 100%;
}
/* BARRA AZUL */
.section-blue { background: var(--azul); color: #fff; padding: 50px 0; }
.section-blue h2 { font-size: 32px; font-weight: 700; margin-top: 10px; }

/* BLOQUES DE PRODUCTO (CUADROS A LA IZQUIERDA) */
.feature-row { height: 550px; background-size: cover; background-position: center; border-bottom: 1px solid #fff; }
.feature-box-left { background: rgba(255, 255, 255, 0.92); padding: 50px; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.feature-box-left h2 { color: var(--rojo); font-weight: 900; font-size: 28px; margin-bottom: 20px; }
.btn-ver-mas { display: inline-block; border: 1px solid #000; color: #000; padding: 10px 35px; font-weight: bold; font-size: 12px; margin-top: 25px; text-decoration: none; }

/* RAZONES PARA CONFIAR */
.reasons-section { padding: 80px 0; background: #fff; text-align: center; }
.reasons-main-title { color: var(--oscuro); font-weight: 900; font-size: 28px; margin-bottom: 50px; text-transform: uppercase; }
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.reason-item h4 { color: var(--azul); margin-bottom: 15px; text-transform: uppercase; font-weight: bold; }

/* MAPA Y FORMULARIO INDEX */
.map-form-section { padding: 80px 0; background-size: cover; background-position: center; background-attachment: fixed; }
.footer-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: flex-start; }
.map-data-box { background: rgba(255, 255, 255, 0.9); padding: 40px; border-radius: 4px; }
.map-data-box h2 { color: var(--rojo); font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.map-wrapper { margin-top: 20px; border: 4px solid #fff; }
.glass-form-wrapper { background: rgba(0, 0, 0, 0.4); padding: 50px; border-radius: 4px; color: #fff; }
.form-title { font-weight: 900; font-size: 26px; margin-bottom: 25px; text-align: center; text-transform: uppercase; }
.input-field { width: 100%; padding: 14px; border: 1px solid #ddd; background: #fff; margin-bottom: 15px; font-family: inherit; border-radius: 2px; }
.textarea { height: 120px; resize: none; }
.captcha-container { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.captcha-input { max-width: 150px; margin-bottom: 0; color: #333; }
.captcha-refresh { font-size: 11px; color: #fff; text-decoration: underline; cursor: pointer; }
.btn-submit { background: var(--rojo); color: #fff; border: none; padding: 15px 60px; font-weight: bold; cursor: pointer; text-transform: uppercase; display: block; margin: 0 auto; transition: 0.3s; }
.btn-submit:hover { background: #333; }

/* FOOTER */
footer { background: var(--rojo); color: #fff; padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-widget h4 { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; margin-bottom: 20px; font-weight: 900; text-transform: uppercase; }

.footer-links { list-style: none; line-height: 2.5; }
.footer-links a { color: #fff; text-decoration: none; }
.sub-footer { background: #333; color: #ccc; text-align: center; padding: 20px 0; font-size: 11px; }
/* --- AGREGAR A STYLE.CSS --- */

/* Hero Título Ortopedia */
.hero-page-title { height: 250px; background-size: cover; background-position: center top; display: flex; align-items: center; }
.title-label { font-size: 18px; font-style: italic; color: var(--oscuro); margin-bottom: 5px; }
.main-page-title { font-size: 55px; font-weight: 900; color: var(--rojo); }

/* Banner Marrón */
.banner-contact-red { background: var(--rojo); color: #fff; padding: 50px 0; text-align: left; }
.banner-contact-red h3 { font-size: 22px; margin-bottom: 15px; font-weight: bold; }
.banner-contact-red p { max-width: 900px; margin-bottom: 20px; }
.btn-banner { display: inline-block; background: #fff; color: var(--oscuro); padding: 12px 30px; font-weight: bold; text-decoration: none; text-transform: uppercase; font-size: 13px; }

/* Detalles Órtesis */
.section-details { padding: 80px 0; background: #fff; }
.row-detail { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; gap: 40px; }
.row-detail.reverse { flex-direction: row-reverse; }
.col-text { flex: 1; }
.col-img { flex: 1; display: flex; justify-content: center; }

.img-circle { width: 350px; height: 350px; border-radius: 50%; border: 1px solid var(--rojo); padding: 5px; overflow: hidden; }
.img-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.red-subtitle { color: var(--rojo); font-weight: 900; font-size: 32px; margin-bottom: 20px; }
.separator-red { border: none; border-top: 2px solid var(--rojo); margin: 60px 0; opacity: 0.3; }

/* Plantillas */
.section-plantillas { padding: 80px 0; background-size: cover; background-position: center; }
.glass-info-full { background: rgba(255, 255, 255, 0.92); padding: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
/* --- SECCIÓN UNIFICADA ORTOPEDIA --- */
.hero-unificada {
    height: 650px; /* Suficiente altura para que el título y el cuadro no se toquen */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el título arriba y el cuadro abajo */
    padding: 60px 0;
}

.header-title-area { margin-bottom: 20px; }
.servicios-label { font-size: 18px; font-style: italic; color: #393836; display: block; }
.page-title-red { font-size: 60px; font-weight: 900; color: var(--rojo); line-height: 1; margin-top: 10px; }

.feature-box-left-fix {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    max-width: 480px;
    margin-left: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
/* Estilos específicos Movilidad */
.blue-subtitle { color: var(--azul); font-size: 35px; font-weight: 300; }
.blue-divider-small { width: 80px; height: 4px; background: var(--azul); margin: 10px 0; }

.custom-list { margin-top: 15px; padding-left: 20px; list-style-type: disc; }
.custom-list li { margin-bottom: 8px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-grid img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border: 1px solid var(--borde);
    transition: transform 0.3s;
}
.gallery-grid img:hover { transform: scale(1.05); }

.section-dark-feature p { color: #ccc; }
/* --- ESTILOS LIMPIOS PARA MOVILIDAD --- */
.hero-clean {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-text-clean {
    max-width: 600px;
    color: #333; /* Texto oscuro sobre fondo claro de la imagen */
}

.description-clean {
    font-size: 18px;
    margin: 20px 0;
    line-height: 1.4;
    color: #444;
}

.btn-red-solid {
    display: inline-block;
    background-color: var(--rojo);
    color: #fff;
    padding: 14px 40px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
}

.btn-red-solid:hover {
    background-color: #333;
}

/* Cuadro traslúcido estilizado según el original */
.feature-box-left-fix {
    background: rgba(255, 255, 255, 0.88);
    padding: 35px;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 2px;
}

.page-title-red {
    font-size: 55px;
    font-weight: 900;
    color: var(--rojo);
    line-height: 1.1;
    margin-top: 10px;
}/* --- CORRECCIÓN PARA DISPOSICIÓN EN FILA --- */
.hero-unificada {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.content-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.header-title-area {
    margin-bottom: 40px;
}

/* Contenedor que obliga a los cuadros a estar en una fila */
.info-blocks-row-layout {
    display: flex;
    flex-direction: row; /* Fuerza la fila */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px; /* Espacio horizontal entre cuadros */
    width: 100%;
}

/* Estilo de cada cuadro individual */
.feature-box-inline {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    flex: 1; /* Hace que ambos cuadros tengan el mismo ancho */
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 2px;
}

/* Botón estilo original */
.btn-red-solid {
    display: inline-block;
    background-color: #8b181b;
    color: #fff;
    padding: 12px 30px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    margin-top: 20px;
}
/* --- ESTILO HERO LIMPIO (IDÉNTICO AL ORIGINAL) --- */
.hero-clean {
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-text-clean {
    max-width: 650px;
    color: #333;
    padding: 20px 0;
}

.servicios-label {
    font-size: 18px;
    font-style: italic;
    color: #393836;
    display: block;
    margin-bottom: 5px;
}

.page-title-red {
    font-size: 60px;
    font-weight: 900;
    color: #8b181b;
    line-height: 1.1;
    margin-bottom: 20px;
}

.description-clean {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #333;
}

.btn-red-solid {
    display: inline-block;
    background-color: #8b181b;
    color: #fff;
    padding: 14px 35px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.3s;
}

.btn-red-solid:hover { background-color: #333; }

/* Separadores y Títulos */
.blue-subtitle { color: #00badb; font-size: 35px; font-weight: 300; margin-bottom: 10px; }
.blue-divider-small { width: 100px; height: 3px; background: #00badb; margin-bottom: 30px; }
.text-content-area p { margin-bottom: 20px; font-size: 16px; }
/* --- ELIMINAR LÍNEA BLANCA FINAL --- */

/* Quitar márgenes de las secciones oscuras */
.section-dark-feature {
    padding: 80px 0;
    margin-bottom: 0 !important; /* IMPORTANTE: Elimina el hueco blanco */
    display: block;
}

/* Asegurar que el footer no tenga margen superior */
footer.main-footer {
    background: #8b181b;
    color: #fff;
    padding: 60px 0;
    margin-top: 0 !important; /* IMPORTANTE: Pega el footer a la sección anterior */
    border: none;
}

/* Reset general para main */
main {
    display: block;
    overflow: hidden; /* Evita colapsos de margen */
}

/* Clase específica para el último bloque */
.no-margin-bottom {
    margin-bottom: 0 !important;
}

.white-subtitle {
    color: #fff;
    font-size: 35px;
    font-weight: 300;
    margin-bottom: 10px;
}

.white-divider-small {
    width: 80px;
    height: 3px;
    background: #fff;
    margin-bottom: 30px;
}