/* ======================================
   SUNSET & SEA — Tarjeta Digital
   Colores: Azul Mar + Amarillo Sol
====================================== */

:root {
    --blue-deep:    #0077B6;
    --blue-ocean:   #00B4D8;
    --blue-sky:     #90E0EF;
    --yellow-sun:   #FFB703;
    --yellow-gold:  #FB8500;
    --yellow-light: #FFF8E7;
    --dark-navy:    #023E8A;
    --white:        #FFFFFF;
    --off-white:    #F4F8FC;
    --text-dark:    #0D1B2A;
    --text-muted:   #607D8B;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(160deg, var(--blue-sky) 0%, var(--blue-ocean) 45%, var(--blue-deep) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== CARD WRAPPER ===== */
.card {
    background: var(--white);
    width: 100%;
    max-width: 460px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 12px 40px rgba(0, 119, 182, 0.22),
        0 30px 80px rgba(0, 55, 100, 0.18);
    animation: card-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.card-header {
    position: relative;
    background: linear-gradient(145deg, var(--dark-navy) 0%, var(--blue-deep) 55%, var(--blue-ocean) 100%);
    padding: 44px 24px 76px;
    text-align: center;
    overflow: hidden;
}

/* Solo brillo azul — sin amarillo */
.header-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 60% at 80% 85%, rgba(0, 180, 216, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

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

.logo-wrap {
    width: 112px;
    height: 112px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.4s ease;
}

.logo-wrap:hover {
    transform: scale(1.06) rotate(-2deg);
}

.logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.amp {
    color: var(--yellow-sun);
    font-style: italic;
}

.brand-sub {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 52px;
    fill: var(--white);
}

/* ===== SHARED SECTION ===== */
.section {
    padding: 28px 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-navy);
    text-align: center;
    margin-bottom: 20px;
}

.section-title.light {
    color: var(--white);
}

/* ===== CONTACTO ===== */
.contact-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 16px 10px 14px;
    border-radius: 18px;
    text-decoration: none;
    background: var(--off-white);
    border: 1.5px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.cc-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 2px;
}

.cc-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cc-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-all;
    line-height: 1.3;
}

/* Contact color variants */
.contact-card.whatsapp .cc-icon { color: #25D366; }
.contact-card.whatsapp:hover    { background: #EDFCF4; border-color: #25D366; }

.contact-card.phone .cc-icon    { color: var(--blue-deep); }
.contact-card.phone:hover       { background: #E3F4FC; border-color: var(--blue-ocean); }

.contact-card.email .cc-icon    { color: var(--yellow-gold); }
.contact-card.email:hover       { background: #FFF6E3; border-color: var(--yellow-sun); }

.contact-card.web .cc-icon      { color: var(--blue-ocean); }
.contact-card.web:hover         { background: #E0F7FA; border-color: var(--blue-ocean); }

/* ===== WHATSAPP PULSE ===== */
.contact-card.whatsapp .cc-icon {
    animation: pulse-green 2.4s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { filter: drop-shadow(0 0 0px rgba(37, 211, 102, 0)); }
    50%       { filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.7)); }
}

/* ===== REDES SOCIALES (fila debajo de contacto) ===== */
.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.social-btn i {
    font-size: 1.05rem;
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #0860D4);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #161823, #2B2B2B);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* ===== DEPARTAMENTOS ===== */
.properties-section {
    background: var(--yellow-light);
    border-top: 1px solid rgba(255, 183, 3, 0.2);
    border-bottom: 1px solid rgba(255, 183, 3, 0.2);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.prop-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 3px 12px rgba(0, 119, 182, 0.09);
    border-bottom: 3px solid var(--blue-ocean);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.18);
    border-bottom-color: var(--yellow-sun);
}

.prop-img-wrap {
    position: relative;
    height: 108px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-ocean), var(--blue-deep));
}

.prop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.prop-card:hover .prop-img {
    transform: scale(1.08);
}

.prop-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,62,138,0.05) 0%, rgba(2,62,138,0.45) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 7px;
}

.prop-img-overlay i {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.prop-info {
    padding: 10px 9px 11px;
}

.prop-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.35;
    margin-bottom: 5px;
}

.prop-link {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--blue-ocean);
    display: flex;
    align-items: center;
    gap: 3px;
}

.prop-link i {
    font-size: 0.5rem;
    transition: transform 0.2s ease;
}

.prop-card:hover .prop-link i {
    transform: translateX(3px);
}

/* ===== OFERTA (tarjeta única, full-width) ===== */
.offers-section {
    background: linear-gradient(145deg, var(--dark-navy), var(--blue-deep));
    position: relative;
    overflow: hidden;
    padding-top: 24px;
    padding-bottom: 24px;
}

.offers-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,183,3,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.offer-card {
    position: relative;
    border-radius: 20px;
    padding: 24px 22px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255, 183, 3, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-3px);
}

.offer-badge {
    position: absolute;
    top: 14px;
    right: 0;
    background: var(--yellow-sun);
    color: var(--dark-navy);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 4px 14px 4px 10px;
    border-radius: 8px 0 0 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.offer-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.offer-icon {
    font-size: 2.8rem;
    color: var(--yellow-sun);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(255,183,3,0.45));
}

.offer-text {
    flex: 1;
}

.offer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.2;
}

.offer-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.offer-desc strong {
    color: var(--yellow-sun);
    font-weight: 700;
}

/* ===== ¿POR QUÉ ELEGIRNOS? ===== */
.features-section {
    background: var(--off-white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-item {
    background: var(--white);
    border-radius: 18px;
    padding: 20px 14px 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 119, 182, 0.13);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.feature-item:nth-child(1) .feature-icon { background: #E0F7FA; color: var(--blue-ocean); }
.feature-item:nth-child(2) .feature-icon { background: #FFF8E1; color: var(--yellow-gold); }
.feature-item:nth-child(3) .feature-icon { background: #E8F5E9; color: #43A047; }
.feature-item:nth-child(4) .feature-icon { background: #EDE7F6; color: #7B1FA2; }

.feature-icon i {
    font-size: 1.3rem;
}

.feature-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 5px;
    line-height: 1.2;
}

.feature-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.card-footer {
    background: var(--dark-navy);
    text-align: center;
    padding: 14px 20px;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.card-footer a {
    color: var(--yellow-sun);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.card-footer a:hover {
    color: var(--white);
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE — MÓVIL ===== */
/* En móvil la tarjeta ocupa toda la pantalla: no se ve el fondo azul */
@media (max-width: 500px) {
    body {
        padding: 0;
        background: var(--white);
        align-items: flex-start;
    }

    .card {
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }

    .brand-name {
        font-size: 2rem;
    }

    .offer-body {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .offer-title {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }

    .prop-img-wrap {
        height: 160px;
    }
}
