/* ========== CONTACTO.CSS - VERSIÓN COMPLETA CON TODOS LOS ESTILOS ========== */

:root {
    /* Colores principales */
    --primary-blue: #004aad;
    --secondary-blue: #5170ff;
    --accent-orange: #ff9f1c;
    --accent-orange-dark: #e68a00;
    --whatsapp-green: #25D366;
    
    /* Escala de grises */
    --bg-light: #f8f9fa;
    --card-bg: #e1f5fe;
    --text-dark: #333;
    --text-gray: #666;
    --text-light-gray: #888;
    --white: #ffffff;
    --black: #000000;
    
    /* Sombras y efectos */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.06);
    --shadow-orange: 0 4px 15px rgba(255, 159, 28, 0.3);
    --shadow-orange-hover: 0 6px 20px rgba(255, 159, 28, 0.5);
    --shadow-wa: 0 10px 20px rgba(37, 211, 102, 0.3);
    --shadow-blue: 0 4px 20px rgba(0, 74, 173, 0.1);
    --shadow-blue-hover: 0 5px 15px rgba(0, 74, 173, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 74, 173, 0.08);
    
    /* Bordes */
    --radius-sm: 15px;
    --radius-md: 20px;
    --radius-lg: 25px;
    --radius-xl: 30px;
    --radius-full: 50px;
    
    /* Transiciones */
    --transition-default: all 0.3s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-slow: all 0.5s ease;
}

/* ========== ESTILOS GENERALES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ========== NAVBAR PREMIUM ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), var(--accent-orange));
    border-image-slice: 1;
    transition: var(--transition-default);
}

.navbar.scrolled {
    padding: 3px 8%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(0, 74, 173, 0.15);
}

/* Logo con efectos */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    padding: 5px;
}

.main-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-bounce);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.main-logo:hover {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,74,173,0.3));
}

.logo-text {
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    letter-spacing: -0.5px;
    position: relative;
}

.navis { 
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.navis::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    transition: width 0.3s ease;
}

.logo-container:hover .navis::after {
    width: 100%;
}

.mx { 
    color: var(--secondary-blue);
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.mx::before {
    content: '⦿';
    font-size: 0.5rem;
    position: absolute;
    top: -8px;
    right: -8px;
    color: var(--accent-orange);
    animation: pulse 2s infinite;
}

/* Menú de navegación */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    transition: var(--transition-default);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    letter-spacing: 0.5px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-full);
    z-index: -1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.1;
}

.nav-links a:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.nav-links a:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-hover);
}

.nav-links a.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: var(--shadow-blue-hover);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: bounce 2s infinite;
}

.nav-links a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(35deg);
    transition: all 0.6s ease;
}

.nav-links a:hover::after {
    left: 120%;
}

/* ========== PAGE TITLE ========== */
.page-title {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-title h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
    animation: pulseWidth 2s infinite;
}

@keyframes pulseWidth {
    0%, 100% { width: 60px; }
    50% { width: 100px; }
}

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

/* Wrapper de contacto */
.contacto-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Tarjeta de contacto premium */
.contacto-card-simple {
    background: var(--white);
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 74, 173, 0.1);
    position: relative;
    transition: var(--transition-bounce);
    animation: fadeInUp 1s ease;
}

.contacto-card-simple:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 74, 173, 0.2);
    border-color: transparent;
}

.contacto-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), var(--accent-orange));
}

/* Info completa */
.contacto-info-full {
    padding: 60px 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contacto-info-full::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,74,173,0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.contacto-info-full h2 {
    color: var(--primary-blue);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.contacto-info-full h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
    animation: pulseWidth 2s infinite;
}

.contacto-info-full p {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Detalles de contacto */
.detalles-contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.item-det {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--text-dark);
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0,74,173,0.02), rgba(81,112,255,0.02));
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 74, 173, 0.1);
    transition: var(--transition-default);
    width: 100%;
    max-width: 350px;
    justify-content: center;
}

.item-det:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(0,74,173,0.05), rgba(81,112,255,0.05));
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.item-det i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    width: 30px;
    transition: var(--transition-bounce);
}

.item-det:hover i {
    transform: scale(1.2);
    color: var(--accent-orange);
}

.item-det span {
    font-weight: 500;
}

/* Botón WhatsApp Premium */
.btn-whatsapp-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--whatsapp-green), #128C7E);
    color: var(--white);
    padding: 20px 45px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-wa);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.btn-whatsapp-direct::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #128C7E, var(--whatsapp-green));
    border-radius: var(--radius-full);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn-whatsapp-direct:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-whatsapp-direct:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
    animation: none;
    border-color: var(--white);
}

.btn-whatsapp-direct i {
    font-size: 2rem;
    transition: var(--transition-bounce);
}

.btn-whatsapp-direct:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* ========== FOOTER ========== */
.main-footer {
    background: linear-gradient(135deg, var(--white) 0%, #f0f5ff 100%);
    padding: 80px 8% 40px;
    border-top: 1px solid rgba(0, 74, 173, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.main-footer::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,74,173,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.footer-brand .logo-container {
    justify-content: flex-start;
}

.footer-brand .main-logo {
    height: 70px;
}

.footer-brand .logo-text {
    font-size: 2rem;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

.footer-social-wrap {
    text-align: center;
    background: var(--white);
    padding: 30px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.footer-social-wrap p {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.social-row {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-row a {
    font-size: 2rem;
    transition: var(--transition-bounce);
    color: var(--text-dark);
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    text-decoration: none;
}

.social-row a:hover {
    transform: translateY(-5px) scale(1.1);
}

.icon-fb:hover { 
    background: #1877F2; 
    color: white;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

.icon-ig:hover { 
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
    color: white;
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.3);
}

.icon-tk:hover { 
    background: #000000; 
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.footer-cta .btn-wa-highlight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--whatsapp-green), #128C7E);
    color: var(--white);
    padding: 18px 40px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 800;
    box-shadow: var(--shadow-wa);
    animation: pulse 2s infinite ease-in-out;
    transition: var(--transition-default);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.footer-cta .btn-wa-highlight:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    animation: none;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--whatsapp-green), #128C7E);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-wa);
    transition: var(--transition-bounce);
    z-index: 1000;
    animation: pulse 2s infinite ease-in-out;
    border: 3px solid var(--white);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    animation: none;
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.5);
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========== MEDIA QUERIES GENERALES ========== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px 5%;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 8px 15px;
    }
    
    .nav-links a.active::after {
        bottom: -3px;
        width: 5px;
        height: 5px;
    }
    
    .mx::before {
        top: -5px;
        right: -5px;
        font-size: 0.4rem;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-brand .logo-container {
        justify-content: center;
    }
    
    .footer-brand p {
        text-align: center;
    }
    
    .footer-social-wrap {
        width: 100%;
        max-width: 400px;
    }
}

/* ========== MEDIA QUERIES PARA CONTACTO ========== */
@media (max-width: 768px) {
    .page-title {
        padding: 60px 20px;
    }
    
    .page-title h1 {
        font-size: 2.5rem;
    }
    
    .contacto-info-full {
        padding: 40px 30px;
    }
    
    .contacto-info-full h2 {
        font-size: 2rem;
    }
    
    .contacto-info-full p {
        font-size: 1.1rem;
    }
    
    .item-det {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
    
    .btn-whatsapp-direct {
        padding: 16px 35px;
        font-size: 1.1rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 3%;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .main-logo {
        height: 40px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .contacto-info-full {
        padding: 30px 20px;
    }
    
    .contacto-info-full h2 {
        font-size: 1.8rem;
    }
    
    .contacto-info-full p {
        font-size: 1rem;
    }
    
    .detalles-contacto {
        gap: 15px;
    }
    
    .item-det {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        max-width: 280px;
    }
    
    .item-det i {
        margin-bottom: 5px;
    }
    
    .btn-whatsapp-direct {
        padding: 15px 25px;
        font-size: 1rem;
        width: 100%;
    }
    
    .btn-whatsapp-direct i {
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 15px;
        right: 15px;
    }
    
    .footer-social-wrap {
        padding: 20px;
    }
    
    .social-row {
        gap: 15px;
    }
    
    .social-row a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .footer-cta .btn-wa-highlight {
        padding: 15px 25px;
        font-size: 1rem;
    }
}