/* ===== TARJETA DIGITAL - SALVADOR REYNOSO B. ===== */
/* Consultor Inmobiliario - Forte Grupo Inmobiliario y Proyectos */
/* ===== VARIABLES CSS ===== */
:root {
    --color-negro: #1a1a1a;
    --color-primary-azul: #082A46;
    --color-secondary-gris: #6c757d;
    --color-cafe-forte: #A86028;
    --color-naranjita: #EFAE78;
    --color-blanco: #ffffff;
    --color-fondo: #fafbfc;
    --color-texto-suave: #495057;
    --color-border: #e9ecef;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-negro);
    background-color: var(--color-fondo);
    background-image: url('https://i.postimg.cc/SRDs8TZC/Azul-degradado-4-00x.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ===== LOGO SECTION ===== */
.logo-section {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 100;
}

.company-logo {
    max-width: 250px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.company-logo:hover {
    transform: scale(1.02);
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--color-primary-azul) 0%, var(--color-cafe-forte) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://i.postimg.cc/gJcVVRMw/Chavita-02.png') center/cover;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.9);
    margin: 0 auto 30px;
    display: block;
    object-fit: cover;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.header h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}

.header p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 300;
    opacity: 0.92;
    letter-spacing: 0.5px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== QR SECTION ===== */
.qr-section {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    margin: 50px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
    text-align: center;
}

.qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.qr-text {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.qr-text h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--color-negro);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.qr-text p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: var(--color-texto-suave);
    line-height: 1.6;
    margin-bottom: 15px;
}

.qr-code {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--color-border);
}

.qr-code img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(8, 42, 70, 0.15);
    border-color: var(--color-primary-azul);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    margin: 50px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--color-negro);
    margin-bottom: 50px;
    font-weight: 500;
    position: relative;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-primary-azul);
    border-radius: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    border-color: var(--color-primary-azul);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-azul);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.6rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    background: var(--color-cafe-forte);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--color-negro);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.service-list {
    list-style: none;
    text-align: left;
}

.service-list li {
    padding: 10px 0;
    color: var(--color-texto-suave);
    position: relative;
    padding-left: 25px;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-list li:hover {
    color: var(--color-negro);
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary-azul);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== SPECIALTY SECTION ===== */
.specialty-section {
    background: var(--color-negro);
    color: white;
    border-radius: 16px;
    padding: 70px 40px;
    margin: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.specialty-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary-azul) 0%, var(--color-cafe-forte) 100%);
    opacity: 0.05;
    z-index: 1;
}

.specialty-content {
    position: relative;
    z-index: 2;
}

.specialty-section h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.specialty-section p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}



/* ===== SOCIAL MEDIA SECTION ===== */
.social-section {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    margin: 50px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid var(--color-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--color-primary-azul);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(8, 42, 70, 0.2);
    border: 1px solid transparent;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 42, 70, 0.3);
    background: var(--color-cafe-forte);
}

.social-link i {
    font-size: 1.2rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    margin: 50px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--color-fondo);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--color-primary-azul);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-azul);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.05);
    background: var(--color-cafe-forte);
}

.contact-details h3 {
    color: var(--color-negro);
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.contact-details p {
    color: var(--color-texto-suave);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== MAP SECTION ===== */
.map-section {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    margin: 50px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-top: 35px;
    border: 1px solid var(--color-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.map-overlay h4 {
    color: var(--color-primary-azul);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.map-overlay p {
    color: var(--color-secondary-gris);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-negro);
    color: white;
    padding: 50px 20px 30px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.8rem;
    color: var(--color-naranjita);
    margin-bottom: 30px;
    font-weight: 600;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    align-items: center;
}

.footer-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

.footer-info i {
    color: var(--color-naranjita);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 30px;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer a {
    color: var(--color-naranjita);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    text-decoration: underline;
    color: var(--color-cafe-forte);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .logo-section {
        padding: 20px 15px;
    }

    .company-logo {
        max-width: 200px;
    }

    .header {
        padding: 80px 20px;
        min-height: 50vh;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.6rem;
    }

    .container {
        padding: 15px;
    }

    .services-section,
    .social-section,
    .contact,
    .map-section,
    .qr-section {
        padding: 40px 25px;
        margin: 30px 0;
    }

    .qr-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .qr-text {
        text-align: center;
    }

    .map-container {
        height: 300px;
    }

    .map-overlay {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 15px;
        background: var(--color-fondo);
        border: 2px solid var(--color-primary-azul);
    }

    .footer-content h3 {
        font-size: 1.5rem;
    }

    .footer-info p {
        font-size: 1rem;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .company-logo {
        max-width: 180px;
    }

    .profile-image {
        width: 110px;
        height: 110px;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 10px;
    }
}

/* ===== ANIMACIONES ADICIONALES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.contact-item,
.social-link {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== EFECTOS DE CARGA ===== */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}