/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
    --primary: #2563EB;
    --secondary: #0EA5E9;
    --accent: #EC4899;
    --dark: #1F2937;
    --text: #374151;
    --text-light: #6B7280;
    --light: #F3F4F6;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: flex-start;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/* ============================================
   NAV TOGGLE (MOBILE)
   ============================================ */
.nav-toggle {
    display: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
body {
    padding-top: 70px;
}

.contactame-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f9ff 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.contactame-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ============================================
   FOTO DE PATRICIA
   ============================================ */
.contactame-photo {
    position: sticky;
    top: 100px;
}

.patricia-photo {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: block;
    transform: perspective(1000px) rotateY(-5deg);
}

/* ============================================
   CONTENIDO DE CONTACTO
   ============================================ */
.contactame-header {
    margin-bottom: 48px;
}

.contactame-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.contactame-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   OPCIONES DE CONTACTO
   ============================================ */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.contact-card.whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.contact-card.email:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.contact-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-card.whatsapp .contact-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.contact-info h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-info p {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.social-section {
    margin-bottom: 40px;
}

.social-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.social-link svg,
.social-link i {
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
}

.social-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.social-link.website:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

.social-link.linkedin:hover {
    border-color: #0A66C2;
    background: rgba(10, 102, 194, 0.05);
    color: #0A66C2;
}

.social-link.facebook:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.05);
    color: #1877F2;
}

.social-link.instagram:hover {
    border-color: #E4405F;
    background: rgba(228, 64, 95, 0.05);
    color: #E4405F;
}

/* ============================================
   UBICACIÓN
   ============================================ */
.location-section {
    padding: 24px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.location-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-item h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.location-item a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.location-item a:hover {
    text-decoration: underline;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: white;
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    height: 600px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1999;
}

.chat-widget.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar svg {
    width: 20px;
    height: 20px;
}

.chat-header h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.chat-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--light);
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
}

.chat-message.bot .chat-message-bubble {
    background: white;
    color: var(--text);
}

.chat-message.user .chat-message-bubble {
    background: var(--primary);
    color: white;
}

.chat-input-area {
    padding: 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-option {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.chat-option:hover {
    background: rgba(37, 99, 235, 0.9);
    transform: translateY(-2px);
}

/* ============================================
   CHAT TOGGLE
   ============================================ */
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    z-index: 2000;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.chat-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

.chat-icon {
    width: 24px;
    height: 24px;
}

/* ============================================
   SCROLL TOP BUTTON
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1998;
}

.scroll-top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .contactame-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contactame-photo {
        position: static;
    }

    .contactame-header h1 {
        font-size: 2.5rem;
    }

    .logo-tagline {
        display: none;
    }

    .chat-widget {
        width: 100%;
        height: 500px;
        bottom: 80px;
        right: 0;
        left: 0;
        border-radius: 20px 20px 0 0;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .contactame-section {
        padding: 40px 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        background: none;
        border: none;
    }

    .nav-toggle span {
        width: 30px;
        height: 2px;
        background: var(--dark);
        transition: var(--transition);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease-in-out;
        gap: 16px;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .contactame-header h1 {
        font-size: 2rem;
    }

    .social-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .social-link {
        flex-direction: column;
        padding: 16px 12px;
        gap: 10px;
    }

    .contact-card {
        gap: 16px;
        padding: 16px;
    }

    .chat-widget {
        width: calc(100% - 20px);
        margin: 0 10px;
        bottom: 80px;
    }

    .scroll-top-btn {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .contactame-wrapper {
        gap: 30px;
    }

    .contactame-header h1 {
        font-size: 1.75rem;
    }

    .nav-menu {
        gap: 12px;
    }

    .contact-options {
        gap: 12px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        width: 100%;
    }

    .chat-widget {
        width: calc(100% - 20px);
        height: 400px;
        bottom: 70px;
        margin: 0 10px;
    }

    .chat-toggle {
        bottom: 10px;
    }

    .scroll-top-btn {
        bottom: 70px;
    }
}
