/* 
    Soto Bienes Raíces - Senior Luxury Identity v7.2
    Reversión Total a la versión aprobada (Simetría Móvil OK)
*/

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

:root {
    --bg-base: #F5EFE6;
    --bg-stripe: #E8DFD0;
    --text-dark: #000000;
    --accent-red: #FF0000;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-premium: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    background-image: repeating-linear-gradient(90deg,
            transparent,
            transparent 40px,
            rgba(255, 0, 0, 0.05) 40px,
            rgba(255, 0, 0, 0.05) 41px);
    color: var(--text-dark);
    line-height: 1.4;
    font-size: 1.1rem;
    overflow-x: hidden;
}

/* Header Rojo Puro - Impactante y Compacto */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-premium);
    background: #FF0000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    padding: 10px 8%;
    background: #FF0000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 400;
    text-decoration: none;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
    transition: var(--transition-premium);
    position: relative;
    opacity: 0.9;
}

.header-socials {
    display: flex;
    gap: 15px;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.header-socials a {
    color: #fff !important;
    font-size: 1.1rem !important;
    opacity: 0.7;
    transition: 0.3s;
}

.header-socials a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FFFFFF;
    transition: var(--transition-premium);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero */
.hero-v5 {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 100px 8% 0;
    gap: 80px;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -4px;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.6rem;
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
}

.hero-visual {
    position: relative;
    height: 700px;
}

.visual-main {
    width: 80%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 40px 40px 100px rgba(0, 0, 0, 0.1);
}

.visual-sub {
    position: absolute;
    bottom: -50px;
    left: -40px;
    width: 60%;
    height: 400px;
    border: 15px solid var(--bg-base);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.section {
    padding: 60px 8%;
    scroll-margin-top: 120px;
}

.page-content {
    padding-top: 110px;
    /* Despeja el header fijo */
}

.page-content .section:first-child {
    padding-top: 20px;
    /* Minimiza el espacio extra */
}

.section-small {
    padding: 30px 8%;
}

.section-title {
    text-align: left;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: -3px;
}

/* Search Bar Gestor */
.search-container {
    background: #FFFFFF;
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-top: 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #F9F9F9;
    border-radius: 50px;
    padding: 5px;
}

.search-field {
    padding: 10px 30px;
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #AAA;
    margin-bottom: 3px;
}

.search-field select,
.search-field input {
    background: none;
    border: none;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}

.search-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 0, 0, 0.2);
}

.search-submit {
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-secondary);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.search-submit:hover {
    background: #CC0000;
    transform: scale(1.02);
}

.flex-grow {
    flex-grow: 1;
}

/* Redes Sociales Footer */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: #FFF;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: 0.3s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-red);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--accent-red);
}

.category-card span {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-red);
}

/* Property Grid V2 */
.property-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.property-card-v2 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    border: 1px solid #EEE;
}

.property-card-v2:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Card Carousel */
.card-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-carousel .carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-img:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: rgba(255, 0, 0, 0.8);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FFD700;
    color: #000;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
}

.badge-super {
    background: #000;
    color: #FFF;
}

.badge-oferta {
    background: var(--accent-red);
    color: #FFF;
}

.card-body {
    padding: 30px;
}

.card-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-dark {
    background: #222;
    color: #fff;
}

.badge-gray {
    background: #666;
    color: #fff;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.card-location {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
}

.card-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    margin-bottom: 25px;
}

.spec {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spec strong {
    font-size: 1.1rem;
    color: #000;
}

.spec span {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
}

.card-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
}

.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 45px;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-premium);
    font-size: 0.95rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-red {
    background: var(--accent-red);
    color: white;
}

.btn-dark {
    background: #222;
    color: white;
}

/* Footer */
footer {
    padding: 150px 8%;
    background: #000;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
}

.footer-col h4 {
    margin-bottom: 40px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #444;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 20px;
}

.footer-col a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

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

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Floating */
.btn-whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-decoration: none;
    animation: pump 2s infinite;
}

@keyframes pump {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}/* --- FIN DE ESTILOS (DISEÑO ORIGINAL DE ESCRITORIO) --- */