/* ========================================
   SMILEY CONTACTO PROPIEDAD v1.2
   Poppins · Colores marca #33cc33 / #ff0000
   Columnas altura adaptativa al contenido
   Badge limpio sin degradado
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --scp-red:       #ff0000;
    --scp-green:     #33cc33;
    --scp-blue-dark: #1e3a5f;
    --scp-blue-mid:  #2d5a8e;
    --scp-dark:      #1a202c;
    --scp-gray:      #4a5568;
    --scp-gray-soft: #718096;
}

@keyframes scp-fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scp-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.65); }
}
@keyframes scp-ctaPulse {
    0%,100% { box-shadow: 0 6px 24px rgba(51,204,51,0.4); transform: translateY(0); }
    50%      { box-shadow: 0 10px 32px rgba(51,204,51,0.6); transform: translateY(-3px); }
}

/* ========================================
   CONTENEDOR FULL-WIDTH
   ======================================== */
.scp-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left:  calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 24px;
}

.scp-capsula {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ========================================
   ENCABEZADO — Poppins
   ======================================== */
.scp-header {
    text-align: center;
    margin-bottom: 46px;
    animation: scp-fadeInUp 0.6s ease-out;
}

.scp-subtitulo {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--scp-red);
    margin: 0 0 16px 0;
}

.scp-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    color: var(--scp-blue-dark);
    margin: 0 0 16px 0;
    line-height: 1.15;
}

.scp-subtitulo-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--scp-blue-mid);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   LAYOUT 50/50
   align-items: stretch → misma altura
   El mapa crece para llenar el espacio
   ======================================== */
.scp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 36px;
}

/* ========================================
   COLUMNA IZQUIERDA — PROPIETARIO
   ======================================== */
.scp-owner-column {
    display: flex;
    flex-direction: column;
}

.scp-owner-inner {
    background: linear-gradient(160deg, var(--scp-blue-dark) 0%, var(--scp-blue-mid) 100%);
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 2px solid var(--scp-blue-mid);
    animation: scp-fadeInUp 0.6s ease-out;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}

.scp-owner-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

/* Foto 3/4 */
.scp-owner-photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    flex-shrink: 0;
}

.scp-owner-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.scp-owner-photo-placeholder {
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scp-owner-photo-placeholder svg { width: 80px; height: 80px; opacity: 0.5; }

/* Badge nombre/cargo — SIN degradado, fondo sólido semitransparente */
.scp-owner-badge {
    padding: 14px 22px 16px;
    background: rgba(10, 25, 47, 0.95);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.12);
    /* bloque independiente — no position:absolute */
}

.scp-owner-name {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.scp-owner-cargo {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.2px;
}

/* Puntos — solo los que existen, sin padding extra */
.scp-puntos-wrap {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.10);
    border-top: 1px solid rgba(255,255,255,0.15);
}

.scp-punto {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.scp-punto-check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: var(--scp-green);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.scp-punto-texto {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
    font-weight: 500;
}

/* ========================================
   COLUMNA DERECHA — MAPA + UBICACIÓN
   ======================================== */
.scp-map-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.scp-map-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    overflow: visible;   /* permite que el control zoom respire */
    border: 2px solid var(--scp-green);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    animation: scp-fadeInUp 0.6s ease-out 0.1s backwards;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}

.scp-map-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Mapa — ocupa el espacio disponible, igualando altura de foto 3/4 */
.scp-map {
    width: 100%;
    flex: 1;
    min-height: 320px;
    display: block;
    border-radius: 14px 14px 0 0;  /* redondeo superior, inferior lo tiene puntos */
    overflow: hidden;
    position: relative;
    z-index: 0;
}


/* Control zoom Leaflet — margen desde el borde del mapa */
.scp-map .leaflet-bottom.leaflet-right {
    bottom: 12px;
    right: 12px;
    z-index: 1000;
}

.scp-map .leaflet-control-zoom {
    border: 2px solid var(--scp-green) !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.scp-map .leaflet-control-zoom-in,
.scp-map .leaflet-control-zoom-out {
    color: var(--scp-blue-dark) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.scp-map .leaflet-control-zoom-in:hover,
.scp-map .leaflet-control-zoom-out:hover {
    background: var(--scp-green) !important;
    color: white !important;
}

/* Puntos ubicación — mismo padding exacto que columna izquierda */
.scp-puntos-ubic {
    padding: 18px 22px;
    background: white;
    border-top: 1px solid rgba(51,204,51,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 0 0 14px 14px;  /* redondeo inferior del contenedor */
}

/* Texto oscuro para columna derecha */
.scp-puntos-ubic .scp-punto-texto,
.scp-texto-dark {
    color: var(--scp-dark) !important;
    font-weight: 500;
}

/* Pin emoji en lugar de check verde */
.scp-check-ubic {
    background: transparent !important;
    font-size: 17px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    color: inherit !important;
    margin-top: 0 !important;
}

/* Logo al pie */
.scp-logo-footer {
    padding: 8px 22px 14px;
    text-align: right;
    border-top: 1px solid rgba(51,204,51,0.15);
}

.scp-logo-footer img {
    max-width: 50px; height: auto;
    opacity: 0.55;
    transition: opacity 0.3s;
}

.scp-logo-footer img:hover { opacity: 1; }

/* ========================================
   CTA CENTRADO
   ======================================== */
.scp-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.scp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--scp-green);
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 52px;
    border-radius: 14px;
    animation: scp-ctaPulse 2.5s ease-in-out infinite;
    transition: background 0.3s ease;
    letter-spacing: 0.3px;
    min-width: 280px;
    justify-content: center;
}

.scp-cta-btn:hover {
    background: #28a428;
    transform: translateY(-4px) !important;
    animation: none;
    box-shadow: 0 12px 32px rgba(51,204,51,0.5);
    color: #fff;
    text-decoration: none;
}

.scp-cta-icon {
    width: 28px; height: 28px;
    fill: white;
    flex-shrink: 0;
}

/* ========================================
   WHATSAPP FLOTANTE
   Mensaje distinto al CTA: "¿Tienes dudas?"
   ======================================== */
.scp-whatsapp-flotante {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background: var(--scp-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: scp-pulse 2s infinite;
}

.scp-whatsapp-flotante:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 8px 28px rgba(51,204,51,0.6);
}

.scp-wa-flotante-icon { width: 32px; height: 32px; fill: white; }

.scp-wa-flotante-tooltip {
    position: absolute;
    right: 74px;
    background: white;
    color: var(--scp-dark);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.scp-wa-flotante-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;
}

.scp-whatsapp-flotante:hover .scp-wa-flotante-tooltip { opacity: 1; }

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 992px) {
    .scp-columns {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .scp-capsula { padding: 35px; }
    .scp-owner-inner:hover,
    .scp-map-inner:hover { transform: none; }
    .scp-map { height: 280px; }
    .scp-cta-btn { padding: 18px 36px; font-size: 17px; }
}

/* ========================================
   RESPONSIVE — MÓVIL
   ======================================== */
@media (max-width: 768px) {
    .scp-container   { padding: 16px; }
    .scp-capsula     { padding: 28px; }
    .scp-map         { height: 250px; }
    .scp-puntos-wrap,
    .scp-puntos-ubic { padding: 14px 16px; gap: 8px; }
    .scp-punto-texto { font-size: 13px; }
    .scp-titulo      { font-size: 28px; }
    .scp-subtitulo-desc { font-size: 16px; }
    .scp-cta-btn     { font-size: 16px; padding: 16px 28px; min-width: 220px; }
}

/* ========================================
   RESPONSIVE — MÓVIL PEQUEÑO
   ======================================== */
@media (max-width: 480px) {
    .scp-container   { padding: 10px; }
    .scp-capsula     { padding: 20px; }
    .scp-map         { height: 220px; }
    .scp-titulo      { font-size: 24px; }
    .scp-subtitulo-desc { font-size: 15px; }
    .scp-cta-btn     { font-size: 15px; padding: 14px 20px; min-width: 0; width: 100%; }
    .scp-whatsapp-flotante { width: 54px; height: 54px; bottom: 20px; right: 20px; }
    .scp-wa-flotante-tooltip { display: none; }
}

/* ========================================
   TOUCH — sin hover effects
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .scp-owner-inner:hover,
    .scp-map-inner:hover { transform: none; }
    .scp-cta-btn:hover   { transform: none !important; animation: scp-ctaPulse 2.5s ease-in-out infinite; }
}
