:root {
    --primary: #1f3c88;
    --secondary: #ff9800;
    --gray: #f4f6f8;
}

html {
    scroll-behavior: smooth;
}


/* Para todos los títulos (hero, secciones, cards) */
h1, h2, h3, h4, h5 {
    font-family: 'Merriweather', serif;
    font-weight: 700; /* bold */
}

/* Para párrafos o texto normal */
body, p, span, li {
    font-family: 'Merriweather', serif;
    font-weight: 200; /* regular */
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}








.header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.header-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 0;
}

/* Header logo normal */
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px; /* espacio entre el icono y el texto */
}

.header-logo h2 {
    color: var(--primary);
    font-weight: 700;
}

.header-logo img.header-icon {
    width: 42px;
    height: 32px;
}

/* Centrar logo en móviles */
@media (max-width: 768px) {
    .header-logo {
        justify-content: center; /* centra horizontalmente */
        width: 100%;
    }

    .header-logo h2 {
        font-size: 18px; /* opcional, ajusta tamaño en móvil */
    }
}


.header-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.header-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.header-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 600;
}

.lang-toggle:hover {
    background: #f4f6f8;
}

.lang-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    min-width: 140px;
    display: none;
    overflow: hidden;
    z-index: 100;
}

.lang-menu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.lang-menu a:hover {
    background: #f4f6f8;
}

/* Mostrar dropdown al hover */
.lang-dropdown:hover .lang-menu {
    display: block;
}

/* Flechita */
.arrow {
    font-size: 12px;
    opacity: 0.6;
}


@media (max-width: 768px) {

    .header-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .header-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-action {
        justify-content: center;
    }

    .header-action .btn {
        width: 100%;
        max-width: 220px;
    }
}

.header-lang {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}





.btn {
    background: var(--secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-light {
    background: white;
    color: var(--primary);
}









.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;

    background-image: url("../img/seguros.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Overlay degradado */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(31, 60, 136, 0.85),
        rgba(128, 0, 128, 0.75)
    );
}

/* Contenido encima del overlay */
.hero-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Texto centrado */
.hero-text {
    max-width: 700px;
    text-align: center;
    color: white;
}

.hero-tag {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-second-description {
    font-size: 15px;
    opacity: 0.85;
    margin-top: 25px;
}
@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
        padding: 90px 20px;
        background-position: center top;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
    }
}
.hero-wave {
    position: absolute;
    bottom: -1px; /* evita línea blanca rara */
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}








.section {
    padding: 70px 20px;
    text-align: center;
    background-color: #f4f6f8;
}
.why-layout {
    padding: 0px 0px;
}
.why-us h2 {
    margin-bottom: 50px;
    position: relative;
    display: inline-block; /* para que la barra quede centrada bajo el texto */
}

.why-us h2::after {
    content: "";
    display: block;
    width: 60px;       /* ancho de la barra */
    height: 4px;       /* grosor de la barra */
    background-color: var(--secondary); /* naranja */
    margin: 8px auto 0; /* separada del texto, centrada */
    border-radius: 2px; /* opcional, bordes redondeados */
}

.why-us .why-grid {
    display: grid;
    grid-template-columns: repeat(4, 300px); /* 4 columnas fijas */
    gap: 25px;
    justify-content: center; /* centra todo el bloque */
}


.why-card {
    width: 100%; /* ocupa todo el ancho de la columna */
    display: flex;
    gap: 18px;
    align-items: center; /* iconos centrados verticalmente */
    text-align: left;
    background: #ffffff
;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--secondary);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.why-text h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.why-text p {
    color: #555;
    max-width: 280px;
}

.why-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--secondary);
}

.why-icon img {
    width: 70%;  /* ajusta el tamaño de la imagen dentro del círculo */
    height: 70%;
    object-fit: contain;
}


@media (max-width: 768px) {
    .why-us .why-grid {
        grid-template-columns: 1fr; /* 1 tarjeta por fila */
        gap: 20px;
        padding: 0 10px;
    }

    .why-card {
        padding: 18px;
    }

    .why-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .why-text h3 {
        font-size: 16px;
    }

    .why-text p {
        font-size: 14px;
    }
}










.gray {
    background: #fff;
}

/* Sección de proceso */
#proceso {
    padding: 70px 20px;
    text-align: center;
}

#proceso h2 {
    padding-bottom: 20px;
    position: relative;
    display: inline-block;
}

#proceso .parrafo-1{
    padding-bottom: 50px;
}
#proceso .parrafo-1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Grid de pasos */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
    justify-items: center; /* centra las tarjetas */
}

.process-step {
    width: 335px;  /* ancho fijo de la tarjeta en desktop */
    background: #f3f3f3
;
    padding: 30px 20px;
    border-radius: 14px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column; /* importante para que el contenido apile verticalmente */
    justify-content: flex-start;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--secondary);
}


.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Número grande */
.process-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Título y descripción */
.process-step h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.process-step p {
    color: #555;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .process-step {
        padding: 20px 15px;
    }

    .process-number {
        font-size: 28px;
    }

    .process-step h3 {
        font-size: 16px;
    }

    .process-step p {
        font-size: 14px;
    }
}
/* Flecha hacia la derecha entre pasos */
.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%; /* verticalmente centrada */
    right: -30px; /* un poco fuera de la tarjeta */
    transform: translateY(-50%) rotate(45deg);
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

/* Opcional: esconder flechas en tablet/móvil */
@media (max-width: 1024px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}










.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 60px auto 0;
}
.h2-plan::after {
    content: "";
    display: block;
    width: 60px;       /* ancho de la barra */
    height: 4px;       /* grosor de la barra */
    background-color: var(--secondary); /* naranja */
    margin: 8px auto 0; /* separada del texto, centrada */
    border-radius: 2px; /* opcional, bordes redondeados */
}
.plan-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.plan-desc {
    color: #777;
    margin-bottom: 20px;
}

.plan-price strong {
    font-size: 32px;
    color: var(--primary);
}

.plan-price span {
    display: block;
    color: #777;
    margin-bottom: 25px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    font-size: 15px;
}

.plan-features .disabled {
    color: #bbb;
}

/* Destacado */
.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
}



@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .featured {
        transform: none;
    }
}












.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 18px;
}

.cta p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e0e6ff;
}

.cta .btn {
    display: inline-block;
    margin: auto; /* espacio arriba y abajo */
    padding: 14px 36px;
    font-size: 16px;
    margin-bottom: 25px;
}

.cta-benefits {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: #d9e1ff;
    flex-wrap: wrap;
}

.cta {
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    display: flex;
    justify-content: center;

    /* Imagen de fondo */
    background-image: url("../img/rrr.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

/* Overlay opcional */
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(31, 60, 136, 0.8),
        rgba(128, 0, 128, 0.6)
    );
}

.cta-card {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 60px 40px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.50); /* opcional para “resaltar” */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    margin-top: 80px;
}
/* Ola hacia arriba */
.cta-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.cta-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}




@media (max-width: 768px) {
    .cta h2 {
        font-size: 26px;
    }

    .cta p {
        font-size: 15px;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 10px;
    }
}
















.footer {
    background: #0f1f3d;
    color: #cbd4ff;
    padding-top: 70px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

/* Branding */
.footer-brand h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-brand p {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.6;
}

/* Logo del footer */
.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* Para alinear todo verticalmente en desktop y mobile */
.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre logo y h3 */
}

/* Mobile: centrar todo */
@media (max-width: 768px) {
    .footer-brand-top {
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        text-align: center;
    }
}

/* Columnas */
.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd4ff;
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--secondary);
}


.footer-bottom .container {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #9aa7ff;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .close{
        display: none;
    }
}
.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}












.consultar-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,.08);
    text-align: center;
}

.consultar-container input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.consultar-container button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.resultado {
    margin-top: 20px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
}

.error {
    color: #dc2626;
    margin-top: 10px;
}

.acciones a,
.acciones button {
    display: inline-block;
    margin-right: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin: 5px 0;
}

.acciones a.btn-primaryy {
    background-color: #3b82f6; /* azul */
    color: white;
}

.acciones a.btn-secondaryy {
    background-color: #6b7280; /* gris oscuro */
    color: white;
}

.acciones a.disabled {
    cursor: default;
    opacity: 0.5;
}

.acciones button.btn-previsualizar {
    background-color: #f59e0b; /* naranja */
    color: white;
    border: none;
    font-weight: 500;
}

.acciones button.btn-previsualizar:hover {
    background-color: #d97706; /* naranja más oscuro */
}







.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content-wrapper {
    position: relative;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: -20px;
    right: -20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}







/* =========================
   PLATE SERVICE SECTION
========================= */
.plate-service {
  background: linear-gradient(to right, #625eff, #9712fa); /* franja oscura */
  color: #fff;
  padding: 80px 20px;
  border-radius: 10px;
}

.plate-service-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Izquierda */
.plate-left {
  flex: 1.2;
  text-align: left;
}

.plate-left h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.num {
  background: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: bold;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.step-text p {
  color: #ddd;
  font-size: 0.95rem;
}

/* Derecha */
.plate-right {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left; /* Alineamos todo a la izquierda */
}

.plate-right h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.plate-right ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.plate-right ul li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #f5f5f5;
}

/* Botón */
.btn-cta {
  background: #fff;
  color: #000;
  padding: 14px 0; /* sin padding lateral para ocupar todo el ancho */
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%; /* ocupa todo el ancho disponible */
  display: block;
  text-align: center;
}

.btn-cta:hover {
  background: #ddd;
}

@media (max-width: 768px) {
  .plate-service-container {
    flex-direction: column;
    align-items: stretch; /* hace que los hijos ocupen el 100% */
    text-align: left;
  }

  .plate-left,
  .plate-right {
    flex: 1 1 100%;
    width: 100%;
  }

  .plate-right {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.15); /* leve contraste para móvil */
    padding: 25px;
  }

  .step {
    justify-content: flex-start;
  }

  .num {
    width: 28px;
    height: 28px;
  }

  .btn-cta {
    width: 100%;
    font-size: 1rem;
    padding: 14px 0;
  }
}
