/* Refresco visual de index.html. Se carga después de style.css y responsive.css. */

html, body { overflow-x: hidden; }
body.main-layout { width: 100%; }
img { max-width: 100%; }

/* Animación de aparición */
.idx_reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.idx_reveal.visible { opacity: 1; transform: none; }

/* Botones */
.idx_btn {
     display: inline-flex; align-items: center; justify-content: center; gap: 8px;
     padding: 11px 26px; border-radius: 30px; font-size: 14px; font-weight: 700;
     text-transform: uppercase; letter-spacing: .5px; line-height: 1.3;
     border: 2px solid #03cafc; transition: all .3s ease;
}
.idx_btn_solid { background: #03cafc; color: #fff !important; box-shadow: 0 4px 15px rgba(3,202,252,.35); }
.idx_btn_solid:hover { background: #02b3e0; border-color: #02b3e0; transform: translateY(-2px); }
.idx_btn_outline { background: #fff; color: #1a1a1a !important; }
.idx_btn_outline:hover { background: #03cafc; color: #fff !important; transform: translateY(-2px); }

/* Encabezado: en el flujo normal para que el carrusel nunca quede tapado, sin importar el ancho */
.header { position: relative !important; background: #eef9fd; display: flow-root; }
.header .logo, .header .full, .header .center-desk { float: none !important; width: 100%; }
.idx_header_links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }

/* Banner */
.banner_main {
     background: linear-gradient(180deg, #eef9fd 0%, #f5f6f6 55%, #ffffff 100%);
     padding: 45px 0 80px 0;
}
.text-bg h1 { font-size: clamp(28px, 5vw, 58px); line-height: 1.25; padding-bottom: 30px; }
.text-bg figure { margin: 0 auto; max-width: 900px; }
.text-bg figure img {
     width: 100%; height: auto; max-height: 440px; object-fit: cover;
     border-radius: 18px; box-shadow: 0 18px 45px rgba(0,0,0,.15);
}
.idx_hero_cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
#banner1 .carousel-item { padding-bottom: 70px; transition: transform .9s ease-in-out; }
#banner1 .carousel-indicators { display: flex; bottom: 0; }
#banner1 .carousel-indicators li { width: 10px; height: 10px; border-radius: 10px; background: #1a1a1a; opacity: .3; border: 0; margin: 0 5px; transition: all .3s ease; }
#banner1 .carousel-indicators li.active { width: 28px; background: #03cafc; opacity: 1; }
#banner1 .carousel-control-prev,
#banner1 .carousel-control-next { width: 52px; height: 52px; font-size: 20px; background: #fff; border-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); top: auto; bottom: 8px; }
#banner1 .carousel-control-prev:hover,
#banner1 .carousel-control-next:hover { background: #03cafc; border-color: #03cafc; color: #fff; }

/* Sección "mejores opciones" */
.about { border-bottom: 0; padding: 90px 0 60px 0; }
.about .titlepage {
     border: 1px solid #f0f0f0; border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.09);
     padding: 40px; position: relative;
}
.about .titlepage::before { display: none; }
.about .about_img figure { border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.12); }
.about .about_img figure img { width: 100%; display: block; transition: transform .5s ease; }
.about .about_img figure:hover img { transform: scale(1.04); }
.about .titlepage p { line-height: 30px; }
.about .idx_btn { margin-top: 26px; }

/* Servicios */
.idx_servicios { padding: 30px 0 60px 0; }
.idx_titulo { text-align: center; margin-bottom: 36px; }
.idx_titulo h2 { font-size: clamp(26px, 4vw, 35px); font-weight: 800; color: #2a2a2c; line-height: 1.25; margin: 0 0 10px 0; }
.idx_titulo h2 .blu { color: #03cafc; }
.idx_titulo p { color: #666; font-size: 16px; margin: 0; }
.idx_servicios .row > div { margin-bottom: 24px; }
.idx_card {
     height: 100%; background: #fff; border: 1px solid #f0f0f0; border-radius: 16px;
     padding: 30px 22px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.07); transition: all .35s ease;
}
.idx_card:hover { transform: translateY(-8px); border-color: #03cafc; box-shadow: 0 20px 40px rgba(3,202,252,.2); }
.idx_icono {
     width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(3,202,252,.12);
     color: #03cafc; font-size: 26px; display: flex; align-items: center; justify-content: center; transition: all .35s ease;
}
.idx_card:hover .idx_icono { background: #03cafc; color: #fff; }
.idx_card h3 { font-size: 19px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px 0; }
.idx_card p { font-size: 14px; color: #666; line-height: 24px; margin: 0; }

/* Banner Nosotros */
.idx_nosotros { padding: 10px 0 70px 0; }
.idx_nosotros_box {
     display: flex; flex-wrap: wrap; align-items: center; background: #111; color: #fff;
     border-radius: 18px; overflow: hidden; box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.idx_nosotros_img { flex: 1 1 340px; min-height: 280px; align-self: stretch; background: #222 center / cover no-repeat; }
.idx_nosotros_txt { flex: 1 1 340px; padding: 44px 40px; }
.idx_nosotros_txt .idx_etiqueta {
     display: inline-block; background: rgba(3,202,252,.15); color: #03cafc; border-radius: 20px;
     padding: 4px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px;
}
.idx_nosotros_txt h2 { color: #fff; font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; line-height: 1.25; margin: 0 0 12px 0; }
.idx_nosotros_txt h2 .blu { color: #03cafc; }
.idx_nosotros_txt p { color: #ccc; font-size: 16px; line-height: 28px; margin: 0 0 24px 0; }

/* Marcas */
.glasses { margin-top: 0; padding-bottom: 20px; background: linear-gradient(180deg, #fff, #f8fbfd); }
.glasses .titlepage { padding-bottom: 40px; }
.glasses .titlepage h2 { font-size: clamp(26px, 4vw, 35px); font-weight: 800; }
.glasses .container-fluid { max-width: 1320px; padding-left: 15px; padding-right: 15px; }
.glasses .glasses_box {
     background: #fff; border: 1px solid #f0f0f0; border-radius: 16px; overflow: hidden;
     box-shadow: 0 8px 25px rgba(0,0,0,.06); margin-bottom: 24px; transition: all .35s ease;
}
.glasses .glasses_box:hover { transform: translateY(-6px); border-color: #03cafc; box-shadow: 0 18px 38px rgba(3,202,252,.2); }
.glasses .glasses_box figure { height: 170px; padding: 14px; display: flex; align-items: center; justify-content: center; background: #fff; }
.glasses .glasses_box figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.glasses .glasses_box h3 { font-size: 15px; font-weight: 700; padding: 12px 8px; margin: 0; border-top: 1px solid #f3f3f3; }
.glasses .full { margin-top: 20px; margin-bottom: 30px; }

/* Contacto: junto a los mapas si hay ancho; si no, formulario arriba centrado y mapas debajo */
.glasses .full { float: none; clear: both; }
.idx_contacto { clear: both; display: flex; flex-wrap: wrap; width: 100%; }
.idx_contacto .contact_form { margin: 0 auto; max-width: 100%; }
.idx_contacto #map { flex: 1 1 300px; display: flex; flex-direction: column; min-width: 300px; height: 592px; }
.idx_contacto #map iframe { flex: 1; width: 100%; min-height: 0; border: 0; }

@media (max-width: 460px) {
     .idx_contacto .contact_form { width: 100%; padding: 15px; }
     .idx_contacto .formulario input,
     .idx_contacto .formulario textarea { width: 100%; }
     .idx_contacto .formulario button { width: 100%; margin-left: 0; }
}

@media (max-width: 991px) {
     .banner_main { padding-top: 40px; }
     .about .titlepage { margin: 24px 0 0 0; padding: 30px 26px; }
     .about .about_img { margin-left: 0; }
     .idx_nosotros_txt { padding: 34px 28px; }
}

@media (max-width: 575px) {
     .header { padding: 22px 10px 10px 10px; }
     .logo { float: none; padding-top: 0; }
     .logo img { max-height: 70px; width: auto; }
     .banner_main { padding: 35px 0 50px 0; }
     .text-bg h1 { padding-bottom: 20px; }
     .text-bg figure img { border-radius: 14px; max-height: 280px; }
     .idx_btn { padding: 10px 20px; font-size: 13px; }
     .idx_hero_cta .idx_btn { flex: 1 1 100%; }
     #banner1 .carousel-control-prev,
     #banner1 .carousel-control-next { width: 42px; height: 42px; font-size: 16px; left: 8px; }
     #banner1 .carousel-control-next { left: auto; right: 8px; }
     .about { padding: 50px 0 40px 0; }
     .about .titlepage { padding: 24px 20px; }
     .about .titlepage p { font-size: 15px; line-height: 26px; }
     .glasses .glasses_box figure { height: 120px; }
     .glasses .glasses_box h3 { font-size: 13px; }
     .idx_nosotros_txt { padding: 28px 22px; }
     .idx_nosotros_txt p { font-size: 15px; line-height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
     .idx_reveal { opacity: 1; transform: none; transition: none; }
}
