/* General */
* { margin:0; padding:0; box-sizing: border-box; font-family: 'Arial', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Barra Celeste */
.top-bar { background: #00badb; color: white; padding: 10px 0; font-size: 13px; }
.top-content { display: flex; justify-content: space-between; }

/* Header PC */
.main-header { padding: 20px 0; text-align: center; background: #fff; }
.logo img { max-width: 250px; margin-bottom: 15px; }
.nav-menu ul { display: flex; justify-content: center; list-style: none; border-top: 1px solid #eee; padding-top: 15px; }
.nav-menu ul li a { padding: 0 15px; text-decoration: none; color: #333; font-weight: bold; font-size: 12px; }
.nav-menu ul li a.active { color: #8a171a; }

/* Ruleta / Hero */
.hero-slider { height: 450px; background: url('../img/fondo.jpg'); background-size: cover; position: relative; }
.hero-content { background: rgba(255,255,255,0.8); height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-content h1 { color: #8a171a; font-size: 35px; max-width: 800px; }
.green { color: #145c2f; }
.btn-black { background: #252525; color: white; padding: 15px 25px; text-decoration: none; margin: 10px; display: inline-block; }
.btn-outline { border: 2px solid #252525; color: #252525; padding: 13px 25px; text-decoration: none; display: inline-block; }
.services-section {
    padding: 60px 0;
    text-align: center;
}

.title-red {
    color: #8a171a;
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.subtitle {
    color: #3d3d3d;
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Cuadrícula de 12 columnas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr); 
    gap: 30px;
}

/* Estilo base de las cajas */
.service-box {
    grid-column: span 3; /* Por defecto ocupan 3 de 12 (entran 4 por fila) */
    text-align: left;
}

/* Clase para los últimos 3 bloques (más anchos) */
.service-box.wide {
    grid-column: span 4; /* Ocupan 4 de 12 (entran 3 por fila) */
}

.service-box img {
    width: 64px;
    height: auto;
    margin-bottom: 15px;
}

.service-box h3 {
    color: #00badb;
    font-size: 20px;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.btn-more {
    display: inline-block;
    border: 1px solid #00badb;
    color: #00badb;
    padding: 8px 0;
    width: 100%; /* El botón ocupa todo el ancho de la caja */
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #00badb;
    color: #fff;
}

/* Ajuste para móviles */
@media (max-width: 992px) {
    .service-box, .service-box.wide {
        grid-column: span 6; /* 2 por fila en tablets */
    }
}

@media (max-width: 600px) {
    .service-box, .service-box.wide {
        grid-column: span 12; /* 1 por fila en móviles */
    }
}

/* Footer */
.main-footer { background: #8a171a; color: white; padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-form input, .footer-form textarea { width: 100%; margin-bottom: 10px; padding: 8px; background: rgba(255,255,255,0.1); border: 1px solid #fff; color: white; }
.footer-form button { width: 100%; padding: 10px; background: none; border: 1px solid white; color: white; cursor: pointer; }

.hero-slider {
    height: 450px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-overlay {
    background: linear-gradient(to right, 
        rgba(255,255,255,1) 0%, 
        rgba(255,255,255,0.9) 20%, 
        rgba(255,255,255,0) 75%);
    height: 100%;
    display: flex;
    align-items: center;
}

/* Alineación exacta a la izquierda del contenedor */
.hero-container-left {
    width: 100%;
    padding-left: 5%; 
}

.hero-content {
    max-width: 650px;
    text-align: left;
}

.hero-content h1 {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.red-text { color: #8a171a; }
.green-text { color: #145c2f; }

/* --- BOTONES ALINEADOS EN FILA Y MISMA ALTURA --- */
.hero-btns {
    display: flex;
    align-items: stretch; /* Fuerza a que ambos tengan la misma altura */
    justify-content: flex-start; /* Todo a la izquierda */
    gap: 10px; 
}

.btn-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Medidas exactas */
    width: 220px; 
    height: 50px; 
    
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #222;
    box-sizing: border-box; /* Asegura que el borde no afecte la altura */
    margin: 0; /* Elimina márgenes que descuadren el botón */
}

.btn-black { background: #222; color: #fff; }
.btn-white { background: #fff; color: #222; }

/* --- RESPONSIVO MÓVIL --- */
@media (max-width: 600px) {
    .hero-container-left { padding-left: 20px; }
    
    .hero-btns {
        flex-direction: column; 
    }

    .btn-hero {
        width: 100%; 
        max-width: 280px;
    }
}

/* Puntos indicadores */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px; height: 10px;
    background: #444;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.4;
}
.dot.active { opacity: 1; background: transparent; border: 2px solid #222; }

/* Franja de contacto rápida (Marrón/Verde oscuro) */
.contact-strip {
    background-color: #3e3a2e;
    color: white;
    padding: 30px 0;
}
.strip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
}

/* Beneficios */
.benefits-section { padding: 60px 0; }
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.benefit-item h4 { color: #333; margin-bottom: 10px; font-size: 16px; }
.benefit-item p { color: #666; font-size: 14px; line-height: 1.5; }

/* Formulario Principal (Celeste) */
.main-contact-form {
    background-color: #00badb;
    padding: 60px 0;
    text-align: center;
}
.title-white { color: white; margin-bottom: 30px; font-size: 28px; }
.large-form {
    max-width: 800px;
    margin: 0 auto;
}
.large-form input, .large-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
}
.btn-submit {
    background-color: white;
    color: #00badb;
    border: none;
    padding: 15px 40px;
    font-weight: bold;
    cursor: pointer;
}
/* Estilos Captcha Formulario Principal */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.captcha-img {
    border: 1px solid #fff;
    border-radius: 4px;
}
.captcha-refresh {
    color: white;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

/* Estilos Captcha Footer */
.captcha-footer-box {
    margin-bottom: 10px;
    text-align: left;
}
.captcha-footer-box input {
    margin-bottom: 5px;
}
.captcha-img-small {
    display: block;
    margin-bottom: 5px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.3);
}
.captcha-refresh-small {
    display: block;
    color: #eee;
    font-size: 11px;
    text-decoration: none;
    margin-bottom: 10px;
}

/* Layout de páginas interiores */
.content-section { padding: 80px 0; }
.two-cols { display: flex; align-items: center; gap: 50px; }
.two-cols.reverse { flex-direction: row-reverse; }
.text-block { flex: 1; text-align: left; }
.image-block { flex: 1; }
.image-block img { width: 100%; height: auto; border-radius: 5px; }

/* Subtítulo Hero Interior */
.hero-subtitle {
    color: #444;
    font-size: 18px;
    font-style: italic;
    margin: 15px 0 25px 0;
    max-width: 500px;
}

/* Franja de cita roja/verde */
.quote-strip {
    background: linear-gradient(to right, #8a171a 0%, #145c2f 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}
.white-quote {
    font-size: 22px;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.grey-bg { background-color: #f9f9f9; }

/* Alineación de botones en bloques de texto */
.btn-container-left { margin-top: 30px; }





/* Bloque 1: Cabecera */
.hero-section-interior {
    height: auto;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
}
.hero-content-left {
    max-width: 600px;
    text-align: left;
}
.title-blue-large { color: #00badb; font-size: 40px; font-weight: bold; margin-bottom: 20px; }
.btn-cyan-solid { 
    background-color: #00badb; color: #fff; padding: 12px 25px; 
    text-decoration: none; display: inline-block; font-weight: bold; margin-bottom: 30px;
}
.highlight-red-text { color: #8a171a; font-size: 18px; line-height: 1.4; font-weight: 500; }

/* Bloque 2: Cita Verde */
.green-quote-block { background-color: #135b2e; padding: 40px 0; color: #fff; text-align: center; }
.quote-box { max-width: 900px; margin: 0 auto; position: relative; }
.quote-box p { font-style: italic; font-size: 18px; line-height: 1.6; color: #fff; }

/* Bloque 3: Cuidado diario (Fondo azulado) */
.care-section { padding: 60px 0; background-color: #96b0c7; color: #fff; }
.text-side-white h2 { font-size: 28px; margin-bottom: 20px; color: #fff; }
.text-side-white ol { padding-left: 20px; margin-bottom: 30px; }
.text-side-white li { margin-bottom: 8px; font-size: 15px; }
.btn-white-outline { 
    border: 2px solid #fff; color: #fff; padding: 10px 20px; 
    text-decoration: none; font-weight: bold; 
}

/* Bloque 4: Conocimiento (3 columnas) */
.knowledge-section { padding: 60px 0; }
.title-red-knowledge { color: #8a171a; font-size: 30px; margin-bottom: 40px; }
.knowledge-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; text-align: left; }
.know-col p { margin-bottom: 15px; font-size: 14px; color: #444; }
.btn-red-outline { 
    border: 2px solid #8a171a; color: #8a171a; padding: 10px 20px; 
    text-decoration: none; font-weight: bold; display: inline-block; margin-top: 15px;
}
.img-col img { width: 100%; height: auto; }

/* Bloque 5: Formulario de Contacto Celeste */
.main-contact-form { background-color: #00badb; padding: 60px 0; color: #fff; }
.text-side-contact { text-align: left; }
.white-p { margin-top: 20px; font-size: 18px; font-style: italic; }
.inner-form input, .inner-form textarea {
    width: 100%; padding: 12px; margin-bottom: 10px; border: none; background: #fff;
}
.captcha-box { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.btn-form-submit { 
    background: transparent; border: 2px solid #fff; color: #fff; 
    padding: 10px 30px; cursor: pointer; font-weight: bold;
}
.title-green-large { color: #145c2f; font-size: 40px; font-weight: bold; margin-bottom: 20px; }
.btn-green-solid { 
    background-color: #145c2f; color: #fff; border: 2px solid #145c2f;
    text-decoration: none; display: flex; font-weight: bold;
}
.btn-green-solid:hover { background-color: #0d3d1f; border-color: #0d3d1f; }
/* Información de contacto en el banner */
.direct-contact-info {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-left: 5px solid #8a171a;
    display: inline-block;
}
.direct-contact-info h3 { color: #8a171a; margin-bottom: 10px; font-size: 18px; }
.direct-contact-info p { color: #333; margin: 5px 0; font-size: 15px; }
.direct-contact-info i { color: #8a171a; margin-right: 10px; }

/* Texto introductorio oscuro para fondo claro */
.intro-text-dark {
    color: #333;
    font-size: 18px;
    line-height: 1.5;
    max-width: 500px;
    margin-top: 20px;
}

/* Alineación captcha central */
.captcha-row-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.captcha-img-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-img-box a {
    color: white;
    font-size: 12px;
    text-decoration: underline;
}
/* --- FOOTER ESTILO ORIGINAL --- */
.main-footer {
    background-color: #8b181b; /* Rojo exacto de la imagen */
    color: #ffffff;
    padding: 40px 0;
    font-family: 'Lato', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { color: #fff; text-decoration: none; font-size: 13px; font-weight: bold; }

/* Iconos Sociales en Cuadros */
.footer-social-icons { display: flex; gap: 10px; }
.social-box {
    width: 35px;
    height: 35px;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
.social-box:hover { background: #fff; color: #8b181b; }

.contact-data p { font-size: 13px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.contact-data i { margin-top: 3px; }

/* Formulario del Footer */
.footer-form input, .footer-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px;
    margin-bottom: 8px;
    color: #fff;
    font-size: 13px;
}

.captcha-help-text { font-size: 11px; margin: 5px 0; color: #ccc; }
.captcha-img-footer { display: block; margin-bottom: 10px; filter: invert(1); }

.footer-submit-btn {
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    text-align: left;
}

/* --- SUB-FOOTER --- */
.sub-footer {
    background-color: #43474d; /* Gris oscuro exacto */
    padding: 20px 0;
    color: #fff;
    font-size: 11px;
}

.sub-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-small { height: 30px; }

.go-top-btn {
    background: #333;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}