/* ========================================
   SMILEY RESERVA - GARANTÍA v2.2
   Garantía (izq) + Mapa (der) + CTA centrado
   ======================================== */

:root {
    --smg-red:         #ff0000;
    --smg-red-dark:    #cc0000;
    --smg-green:       #33cc33;
    --smg-green-dark:  #22aa22;
    --smg-blue-dark:   #1e3a5f;
    --smg-blue-darker: #152d47;
    --smg-gold:        #d4a017;
}

@keyframes smg-fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CONTENEDOR — ancho reducido 1000-1100px
   ======================================== */

.smg-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 24px;
}

.smg-capsula {
    background: white;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ========================================
   HEADER
   ======================================== */

.smg-header {
    text-align: center;
    margin-bottom: 40px;
    animation: smg-fadeInUp 0.6s ease-out;
}

.smg-subtitulo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--smg-red);
    margin: 0 0 14px 0;
}

.smg-titulo {
    font-size: clamp(24px, 3.6vw, 38px);
    font-weight: 800;
    color: var(--smg-blue-dark);
    margin: 0;
    line-height: 1.2;
}

/* ========================================
   LAYOUT 2 COLUMNAS
   Orden en HTML: Garantía primero, Mapa después
   → desktop: Garantía izquierda, Mapa derecha (orden natural)
   → mobile: Garantía arriba, Mapa abajo (mismo orden, sin CSS extra)
   ======================================== */

.smg-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 34px;
    align-items: stretch;
}

/* ========================================
   TARJETAS — ambas columnas, misma altura,
   mismo estilo, con hover llamativo
   ======================================== */

.smg-card {
    background: #fbfcfd;
    border: 1px solid #edf0f3;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease;
}

.smg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: #e2e6ea;
}

/* ========================================
   COLUMNA GARANTÍA
   ======================================== */

.smg-garantia-column {
    display: flex;
    flex-direction: column;
    animation: smg-fadeInUp 0.6s ease-out;
}

.smg-garantia-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: #eff6ff;
    border: 1.5px solid var(--smg-blue-dark);
    color: var(--smg-blue-dark);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 7px 16px 7px 8px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.smg-garantia-titulo {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 26px 0;
    line-height: 1.25;
}

.smg-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.smg-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.smg-item-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.smg-item-text p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #5a6472;
}

/* ========================================
   ICONOS SVG — círculos de color, sin emoji
   ======================================== */

.smg-icon-circle {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smg-icon-circle svg { width: 19px; height: 19px; }

.smg-icon-blue   { background: #eff6ff; color: var(--smg-blue-dark); }
.smg-icon-red    { background: #fee2e2; color: var(--smg-red); }
.smg-icon-green  { background: #f0fdf4; color: var(--smg-green-dark); }
.smg-icon-gold   { background: #fef9e7; color: var(--smg-gold); }
.smg-icon-navy   { background: #e7eaf0; color: var(--smg-blue-darker); }

.smg-icon-small { width: 34px; height: 34px; }
.smg-icon-small svg { width: 17px; height: 17px; }

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

.smg-map-column {
    display: flex;
    flex-direction: column;
}

.smg-map {
    flex: 1;
    min-height: 480px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 0 0 4px rgba(51,204,51,0.15);
    border: 2px solid var(--smg-green);
}

.smg-cerca-list {
    margin: 20px 0 0 0;
    padding-top: 18px;
    border-top: 1px solid #e9edf1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.smg-cerca-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #3d4552;
}

/* ========================================
   CTA CENTRADO — abajo, entre las 2 columnas
   ======================================== */

.smg-cta-wrap {
    text-align: center;
    margin-top: 44px;
}

.smg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--smg-green);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(51,204,51,0.35);
    transition: all 0.3s ease;
}

.smg-cta-btn:hover {
    background: var(--smg-green-dark);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(51,204,51,0.45);
}

.smg-cta-icon { width: 24px; height: 24px; fill: #ffffff; flex-shrink: 0; }

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */

.smg-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--smg-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(51,204,51,0.4);
    transition: all 0.3s ease;
    z-index: 999999;
    text-decoration: none;
    animation: smg-pulse 2s infinite;
}

@keyframes smg-pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(51,204,51,0.4); }
    50%      { box-shadow: 0 6px 30px rgba(51,204,51,0.6); }
}

.smg-whatsapp-btn:hover { transform: scale(1.1); animation: none; }

.smg-whatsapp-icon { width: 32px; height: 32px; fill: white; }

.smg-whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.smg-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.smg-whatsapp-btn:hover .smg-whatsapp-tooltip { opacity: 1; }

/* ========================================
   RESPONSIVE
   Mobile: Garantía primero, Mapa después
   (ya es el orden natural del HTML — solo apilamos)
   ======================================== */

@media (max-width: 992px) {
    .smg-columns { grid-template-columns: 1fr; }
    .smg-capsula { padding: 35px; }
    .smg-map     { min-height: 340px; margin-top: 6px; }
    .smg-card:hover { transform: none; box-shadow: 0 4px 18px rgba(0,0,0,0.05); }
}

@media (max-width: 768px) {
    .smg-container    { padding: 16px; }
    .smg-capsula      { padding: 28px; }
    .smg-card         { padding: 22px; }
    .smg-map          { min-height: 300px; }
    .smg-item         { gap: 12px; }
    .smg-icon-circle  { width: 36px; height: 36px; }
    .smg-icon-circle svg { width: 18px; height: 18px; }
    .smg-cta-btn      { width: 100%; justify-content: center; padding: 15px 24px; }
}

@media (max-width: 480px) {
    .smg-container       { padding: 10px; }
    .smg-capsula         { padding: 20px; }
    .smg-map             { min-height: 260px; }
    .smg-whatsapp-btn    { width: 54px; height: 54px; bottom: 20px; right: 20px; }
    .smg-whatsapp-tooltip{ display: none; }
}
