/* =========================================================
   InsureMeBetter — Hoja de estilos (HTML + CSS + JS puro)
   ========================================================= */

:root {
    --navy: #003D82;
    --navy-dark: #002957;
    --red: #CC1D3A;
    --red-dark: #9a1628;
    --orange: #FF7043;
    --orange-dark: #F4511E;
    --teal: #0891b2;
    --ink: #333333;
    --muted: #666666;
    --bg-soft: #f8f9fa;
    --border: #e5e7eb;
    --radius: 10px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
}

p { font-size: 1.05rem; }

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.75rem;
    margin-bottom: 0.85rem;
}

.section-title p {
    color: var(--muted);
    font-size: 1.15rem;
}

/* =====================  NAVBAR  ===================== */

.site-header {
    background: rgba(255, 255, 255, 0);
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, padding 0.3s ease;
}

.site-header.scrolled,
.site-header.menu-open {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(6px);
}

.site-header.menu-open .brand-text .brand-name { color: var(--navy); text-shadow: none; }
.site-header.menu-open .brand-text .brand-tag { color: var(--muted); }
.site-header.menu-open .nav-toggle span { background: var(--navy); box-shadow: none; }

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
}

.site-header.scrolled .navbar {
    padding: 0.7rem 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    display: inline-flex;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: logoIntro 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes logoIntro {
    from { opacity: 0; transform: scale(0.5) rotate(-15deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.brand-icon img {
    height: 54px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    transition: height 0.3s ease;
}

.site-header.scrolled .brand-icon img {
    height: 44px;
}

.brand:hover .brand-icon {
    transform: rotate(-6deg) scale(1.12);
}

.brand-text .brand-name {
    font-size: 1.55rem;
    line-height: 1.1;
    color: var(--navy);
    transition: color 0.4s ease;
}

.brand-text .brand-tag {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    transition: color 0.4s ease, opacity 0.4s ease;
}

/* Estado transparente: el texto de la marca se vuelve blanco sobre el hero */
.site-header:not(.scrolled) .brand-text .brand-name {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.site-header:not(.scrolled) .brand-text .brand-tag {
    color: rgba(255,255,255,0.85);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

/* Enlaces del navbar — hover elegante: subrayado que crece desde el centro */
.nav-link {
    position: relative;
    font-weight: 600;
    color: var(--navy);
    padding: 0.5rem 0.15rem;
    font-family: 'Poppins', sans-serif;
    transition: color 0.35s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-header:not(.scrolled) .nav-link {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header:not(.scrolled) .nav-link::after {
    background: #ffffff;
}

.nav-link:hover {
    color: var(--red);
    transform: translateY(-1px);
}

.site-header:not(.scrolled) .nav-link:hover {
    color: #ffffff;
    opacity: 0.85;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--red);
}

.site-header:not(.scrolled) .nav-link.active {
    color: #ffffff;
}

.nav-link .chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown.dropdown-open .nav-link .chevron,
.nav-dropdown:hover .nav-link .chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 1rem;
    min-width: 250px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.dropdown-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--ink);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-soft);
    color: var(--red);
    padding-left: 1.8rem;
}

.nav-dropdown-menu a.current {
    color: var(--red);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.site-header:not(.scrolled) .nav-toggle span {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================  BOTONES  ===================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

/* Barrido de brillo elegante al pasar el mouse */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 45%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn-red {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(204, 29, 58, 0.25);
}

.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(204, 29, 58, 0.35);
}

.btn-navy {
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    border-color: var(--navy);
    box-shadow: 0 4px 14px rgba(0, 61, 130, 0.2);
}

.btn-navy:hover {
    background: var(--navy-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 61, 130, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
    border-radius: 8px;
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}

.btn-orange {
    background: var(--orange);
    color: #fff;
    border-radius: 8px;
    border-color: var(--orange);
    width: 100%;
    box-shadow: 0 4px 14px rgba(255, 112, 67, 0.25);
}

.btn-orange:hover {
    background: var(--orange-dark);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 24px rgba(255, 112, 67, 0.35);
}

.btn-sm {
    padding: 0.55rem 1.4rem;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

/* =====================  HERO / CARRUSEL  ===================== */

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: var(--navy);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    animation: heroZoom 9s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 700px;
    padding: 0 1.5rem;
}

.hero-slide.active .hero-slide-content {
    animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.15s;
}

@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-slide-content h1 {
    color: #fff;
    font-size: 3.6rem;
    margin-bottom: 1.1rem;
    letter-spacing: -0.01em;
}

.hero-slide-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.25rem;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(204, 29, 58, 0.4);
}

.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    width: 32px;
    background: var(--red);
}

/* =====================  ABOUT TEASER + COLLAGE  ===================== */

.about-teaser {
    padding: 5rem 0 2rem;
    text-align: center;
}

.about-teaser h2 {
    font-size: 3rem;
}

.about-teaser h2 .fade {
    background: linear-gradient(90deg, var(--navy), #a9c3e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Collage en forma de flecha (chevron), tarjetas encadenadas */
.collage {
    display: flex;
    justify-content: center;
    max-width: 1150px;
    margin: 3.5rem auto 0;
    padding: 0 2rem;
}

.collage-item {
    position: relative;
    width: 340px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    clip-path: polygon(0% 0%, 82% 0%, 100% 50%, 82% 100%, 0% 100%);
}

.collage-item:nth-child(2) {
    margin-left: -60px;
    z-index: 2;
    clip-path: polygon(18% 0%, 82% 0%, 100% 50%, 82% 100%, 18% 100%, 0% 50%);
}

.collage-item:nth-child(3) {
    margin-left: -60px;
    z-index: 1;
    clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 18% 100%, 0% 50%);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collage-item:hover {
    transform: translateY(-10px);
    z-index: 5;
}

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

/* =====================  CHOOSE PROTECTION  ===================== */

.protection {
    padding: 5rem 0;
    background: #fff;
}

.protection-grid-wrap {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.protection-text h2 {
    font-size: 2.3rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.protection-text p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.9;
    font-size: 1.08rem;
}

.protection-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.protection-card {
    position: relative;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.protection-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 100%);
}

.protection-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.protection-card-content {
    position: relative;
    z-index: 2;
}

.protection-card-content h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* =====================  GET QUOTE ICON CARDS  ===================== */

.quote-cards {
    background: var(--bg-soft);
    padding: 5rem 0;
}

.quote-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.quote-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2.25rem 1.5rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.quote-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.quote-icon.navy { background: var(--navy); }
.quote-icon.teal { background: var(--teal); }
.quote-icon.red  { background: var(--red); }
.quote-icon.orange { background: var(--orange); }

.quote-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

/* =====================  CONTACT  ===================== */

.contact {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form-wrap h2 {
    font-size: 2.15rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFEDE3;
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item-body h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-item-body p,
.contact-item-body a {
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-item-body a {
    color: var(--navy);
    font-weight: 600;
}

.contact-form-wrap p.lead {
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--ink);
}

.form-group label .req {
    color: var(--red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d7dbe0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    transition: all 0.25s ease;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.12);
}

.field-error {
    display: none;
    color: var(--red);
    font-size: 0.82rem;
    margin-top: 0.4rem;
}

input.invalid, select.invalid, textarea.invalid {
    border-color: var(--red);
}

input.invalid + .field-error,
select.invalid + .field-error,
textarea.invalid + .field-error {
    display: block;
}

/* =====================  MAPA  ===================== */

.map-section {
    padding: 4rem 0;
    background: var(--bg-soft);
    text-align: center;
}

.map-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.map-frame {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-frame iframe {
    width: 100%;
    height: 340px;
    border: 0;
    display: block;
}

/* =====================  FOOTER  ===================== */

.site-footer {
    background: #0f1e35;
    color: #b7c2d4;
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.footer-grid p, .footer-grid a {
    font-size: 0.98rem;
    color: #b7c2d4;
}

.footer-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-grid a {
    transition: color 0.25s ease;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #7f8ba3;
}

/* =====================  HERO INTERNO (páginas de producto / cotización)  ===================== */

.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 9rem 2rem 5rem;
    text-align: center;
}

.page-hero.has-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-hero.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 24, 56, 0.55);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 0.85rem;
}

.page-hero p {
    opacity: 0.92;
    font-size: 1.2rem;
}

.page-hero .back-link {
    display: inline-block;
    color: #cfe0f7;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-hero .back-link:hover {
    text-decoration: underline;
}

/* =====================  CONTENIDO DE PÁGINAS DE PRODUCTO  ===================== */

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    padding: 5rem 0;
}

.product-grid img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.product-grid h2 {
    font-size: 2.3rem;
    margin-bottom: 1.25rem;
}

.checklist {
    list-style: none;
    margin: 1.5rem 0 2rem;
}

.checklist li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.checklist li::before {
    content: '✓';
    color: var(--navy);
    font-weight: 800;
}

.plans {
    padding-bottom: 5rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.plan-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
    transition: all 0.3s ease;
}

.plan-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.plan-card.popular {
    border: 2px solid var(--navy);
}

.plan-badge {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.plan-card h3 {
    color: var(--navy);
    font-size: 1.55rem;
    margin-bottom: 0.5rem;
}

.plan-card .tagline {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
}

.plan-card ul {
    list-style: none;
    margin-bottom: 1.75rem;
}

.plan-card ul li {
    padding: 0.4rem 0;
    color: var(--ink);
    font-size: 0.92rem;
}

.plan-card ul li.disabled {
    color: #b3b3b3;
    text-decoration: line-through;
}

.cta-banner {
    background: #eef4fc;
    border: 1px solid #dce8f7;
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
}

.cta-banner h2 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}

.cta-banner.coffee {
    background: #FFF4EE;
    border-color: #FCD9C6;
}

.cta-banner .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.cta-banner p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* =====================  FORMULARIO DE COTIZACIÓN AMPLIADO  ===================== */

.quote-page {
    padding: 4rem 0 6rem;
}

.quote-page-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}

.quote-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
}

.quote-form-card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.form-subheading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--navy);
    margin: 2rem 0 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-soft);
}

.form-subheading:first-of-type {
    margin-top: 1.5rem;
}

.quote-side-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.quote-feature {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.quote-feature h3 {
    color: var(--navy);
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
}

.quote-feature p {
    color: var(--muted);
    font-size: 0.88rem;
}

.quote-help {
    background: #eef4fc;
    border: 1px solid #dce8f7;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: var(--ink);
}

.quote-help a {
    color: var(--navy);
    font-weight: 700;
}

/* =====================  CARRUSEL DE FOTOS (auto-scroll)  ===================== */

.photo-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 -2rem;
    padding: 0.5rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.photo-carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: photoScroll 38s linear infinite;
}

.photo-carousel:hover .photo-carousel-track {
    animation-play-state: paused;
}

.photo-carousel-track.reverse {
    animation-direction: reverse;
}

@keyframes photoScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.photo-carousel-item {
    position: relative;
    width: 300px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.35s ease;
}

.photo-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-carousel-item:hover {
    box-shadow: var(--shadow-lg);
}

.photo-carousel-item:hover img {
    transform: scale(1.08);
}

.photo-carousel-item .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}

.photo-carousel-item:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .photo-carousel { margin: 0 -1.25rem; }
    .photo-carousel-item { width: 220px; height: 165px; }
}

/* =====================  BANDA DE LLAMADA (Click-to-call / Ooma)  ===================== */

.call-band {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 3rem 0;
    color: #fff;
}

.call-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.call-band-text h2 {
    color: #fff;
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
}

.call-band-text p {
    color: #cfe0f7;
    margin: 0;
}

.call-band-numbers {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.call-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    backdrop-filter: blur(4px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.call-chip small {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cfe0f7;
    margin-bottom: 0.15rem;
}

.call-chip-icon {
    font-size: 1.35rem;
    transition: transform 0.4s ease;
}

.call-chip:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 26px rgba(204, 29, 58, 0.4);
}

.call-chip:hover small { color: rgba(255, 255, 255, 0.85); }

.call-chip:hover .call-chip-icon {
    transform: rotate(-12deg) scale(1.15);
}

.footer-phone {
    font-weight: 700;
    color: #fff !important;
    font-size: 1.05rem !important;
    transition: color 0.25s ease;
}

.footer-phone:hover { color: var(--orange) !important; }

/* =====================  FORMULARIO EXTERNO EMBEBIDO  ===================== */

.embed-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.75rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.embed-header h2 {
    font-size: 1.35rem;
    margin: 0;
}

.embed-header p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0.2rem 0 0;
}

.embed-frame-wrap {
    position: relative;
    background: #fff;
    min-height: 780px;
}

.embed-frame-wrap iframe {
    width: 100%;
    height: 900px;
    border: 0;
    display: block;
}

.embed-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #fff;
    color: var(--muted);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.embed-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.embed-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid var(--border);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.embed-fallback {
    padding: 3.5rem 2rem;
    text-align: center;
}

.embed-fallback h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.embed-fallback p {
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto 1.75rem;
}

@media (max-width: 768px) {
    .call-band-inner { flex-direction: column; text-align: center; }
    .call-band-numbers { justify-content: center; width: 100%; }
    .call-chip { flex: 1 1 100%; justify-content: center; }
    .embed-frame-wrap iframe { height: 1050px; }
    .embed-frame-wrap { min-height: 640px; }
}

/* =====================  VEHÍCULOS MÚLTIPLES  ===================== */

.vehicle-block {
    border: 1px solid var(--border);
    border-left: 4px solid var(--navy);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: #fcfdfe;
}

.vehicle-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.vehicle-block-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vehicle-remove {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.vehicle-remove:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-add-vehicle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    background: #eef4fc;
    border: 1.5px dashed var(--navy);
    color: var(--navy);
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-vehicle:hover:not(:disabled) {
    background: var(--navy);
    color: #fff;
    border-style: solid;
    transform: translateY(-2px);
}

.btn-add-vehicle:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: var(--border);
    color: var(--muted);
}

.vehicle-hint {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* =====================  TARJETA DE COTIZACIÓN INSTANTÁNEA  ===================== */

.instant-quote-card {
    display: block;
    position: relative;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.85rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(204, 29, 58, 0.28);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.instant-quote-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.6s ease;
}

.instant-quote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(204, 29, 58, 0.4);
}

.instant-quote-card:hover::after {
    transform: scale(1.25);
}

.instant-quote-badge {
    display: inline-block;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.instant-quote-card h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.instant-quote-card p {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.instant-quote-cta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: var(--red);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.instant-quote-card:hover .instant-quote-cta {
    transform: translateX(4px);
}

/* Campos condicionales (se ocultan según otra respuesta) */
.form-group.campo-oculto {
    display: none;
}

/* =====================  NOTIFICACIONES  ===================== */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    max-width: 340px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: slideInDown 0.35s ease-out;
}

.toast.success { background: #10b981; }
.toast.error { background: var(--red); }
.toast.info { background: var(--navy); }

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.collage-item,
.protection-card,
.quote-card,
.plan-card,
.contact-item-icon {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-item.fade-in,
.protection-card.fade-in,
.quote-card.fade-in,
.plan-card.fade-in,
.contact-item-icon.fade-in {
    opacity: 1;
    animation: none; /* evita que el keyframe con transform pise el hover */
}

.fade-in {
    animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* =====================  RESPONSIVE  ===================== */

@media (max-width: 1024px) {
    .collage-item { width: 260px; height: 230px; }
    .protection-grid-wrap { grid-template-columns: 1fr; }
    .quote-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .quote-page-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: var(--shadow-md);
        transition: max-height 0.35s ease;
    }

    .nav-links.open {
        max-height: 480px;
    }

    .nav-links .nav-link,
    .nav-dropdown {
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f0f0f0;
    }

    /* El panel móvil siempre tiene fondo blanco, así que el texto siempre debe ser navy */
    .nav-links .nav-link,
    .site-header:not(.scrolled) .nav-links .nav-link {
        color: var(--navy);
        text-shadow: none;
    }

    .nav-link::after { display: none; }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
    }

    .nav-dropdown.dropdown-open .nav-dropdown-menu {
        max-height: 300px;
    }

    .nav-dropdown-menu a {
        padding-left: 2.5rem;
        background: var(--bg-soft);
    }

    .hero-slide-content h1 { font-size: 2.1rem; }
    .hero-slide-content p { font-size: 1.05rem; }
    .collage {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }
    .collage-item {
        width: 90%;
        max-width: 380px;
        height: 220px;
        margin-left: 0 !important;
        clip-path: inset(0 round 14px) !important;
    }
    .protection-cards { grid-template-columns: 1fr; }
    .quote-cards-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .section-title h2 { font-size: 1.8rem; }
    .hero-carousel { height: 400px; }
}
