/* ===================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   =================================== */
:root {
    /* Colores REMAX */
    --remax-blue: #0066b2;
    --remax-red: #e11b22;
    --remax-dark-blue: #003d71;
    
    /* Colores adicionales */
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --gray-dark: #343a40;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0066b2 0%, #003d71 100%);
    --gradient-red: linear-gradient(135deg, #e11b22 0%, #b01419 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 61, 113, 0.95) 0%, rgba(0, 102, 178, 0.9) 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    
    /* Tipografía */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER Y NAVEGACIÓN
   =================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.logo .remax {
    color: var(--remax-blue);
}

.logo .power {
    color: var(--remax-red);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.nav-link:hover {
    color: var(--remax-blue);
}

/* ===================================
   BOTÓN WHATSAPP FLOTANTE
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b358;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

/* ===================================
   SECCIÓN FORMULARIO (PRIMERA VISTA)
   =================================== */
.formulario-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.formulario-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center;
    opacity: 0.1;
}

.formulario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Columna Información */
.info-column {
    color: var(--white);
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.info-badge i {
    color: #ffd700;
}

.section-title-white {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.info-text {
    font-size: 18px;
    margin-bottom: 35px;
    line-height: 1.7;
    opacity: 0.95;
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 24px;
    color: #ffd700;
}

.contact-label {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.contact-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.contact-value:hover {
    color: #ffd700;
}

.social-proof {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.proof-item i {
    color: #4ade80;
    font-size: 18px;
}

/* Columna Formulario */
.form-column {
    position: relative;
}

.form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header i {
    font-size: 48px;
    color: var(--remax-blue);
    margin-bottom: 15px;
}

.form-header h3 {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--gray);
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--remax-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-secondary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--remax-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 178, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: var(--gradient-red);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-footer-text {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
}

.form-footer-text i {
    color: #10b981;
}

/* ===================================
   SECCIÓN HERO
   =================================== */
.hero-section {
    background: var(--gray-light);
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-primary);
    margin-bottom: 15px;
}

.hero-title .name {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.1;
}

.hero-title .company {
    display: block;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.hero-description {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-secondary {
    background: #25D366;
    color: var(--white);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.hero-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--white);
}

.hero-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-card p {
    color: var(--gray);
}

/* ===================================
   SECCIÓN SOBRE MÍ
   =================================== */
.sobre-mi-section {
    padding: 80px 0;
    background: var(--white);
}

.sobre-mi-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.sobre-mi-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credential-item {
    background: var(--gray-light);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.credential-item i {
    color: var(--remax-blue);
    font-size: 20px;
}

.section-label {
    display: inline-block;
    color: var(--remax-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 38px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 25px;
}

.sobre-mi-text {
    color: var(--gray-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.sobre-mi-text p {
    margin-bottom: 15px;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 15px;
}

.stat-item i {
    font-size: 32px;
    color: var(--remax-blue);
    margin-bottom: 10px;
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 800;
    color: var(--remax-red);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}

/* ===================================
   SECCIÓN SERVICIOS
   =================================== */
.servicios-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.servicio-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.servicio-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.02);
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--gradient-red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.servicio-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    margin-bottom: 25px;
}

.servicio-card.featured .servicio-icon {
    background: rgba(255, 255, 255, 0.2);
}

.servicio-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.servicio-card p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.servicio-card.featured p {
    opacity: 0.95;
}

.servicio-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.servicio-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.servicio-features i {
    color: #10b981;
    font-size: 16px;
}

.servicio-card.featured .servicio-features i {
    color: #ffd700;
}

/* ===================================
   SECCIÓN ZONAS
   =================================== */
.zonas-section {
    padding: 80px 0;
    background: var(--white);
}

.zonas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.zona-card {
    background: var(--gray-light);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.zona-card:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.zona-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    margin: 0 auto 20px;
}

.zona-card:hover .zona-icon {
    background: rgba(255, 255, 255, 0.2);
}

.zona-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.zona-card p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.zona-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.zona-tag {
    background: var(--white);
    color: var(--remax-blue);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.zona-card:hover .zona-tag {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.zona-cta {
    text-align: center;
    background: var(--gray-light);
    padding: 25px;
    border-radius: 15px;
}

.zona-cta p {
    font-size: 16px;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zona-cta i {
    color: var(--remax-blue);
    font-size: 20px;
}

/* ===================================
   SECCIÓN CTA FINAL
   =================================== */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--remax-blue);
}

.cta-buttons .btn-secondary {
    background: #25D366;
    color: var(--white);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column p {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--remax-blue);
    transform: translateY(-3px);
}

.footer-contact,
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--remax-red);
    font-size: 16px;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--remax-blue);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--remax-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 13px;
    opacity: 0.5;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .formulario-grid,
    .hero-content,
    .sobre-mi-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .servicios-grid,
    .zonas-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .section-title-white,
    .hero-title .name {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta a {
        width: 100%;
        justify-content: center;
    }
    
    .form-card {
        padding: 25px;
    }
}