@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Variables de colores principales */
    --naranja-principal: #f39c12;
    --naranja-oscuro: #e67e22;
    --naranja-claro: #f4a261;
    --azul-marino: #2c3e50;
    --azul-oscuro: #003a70;
    --gris-claro: #ecf0f1;
    --blanco: #ffffff;
    --texto-gris: #7f8c8d;
    
    /* Variables adicionales para consistencia */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --primary-orange: #f39c12;
    --orange-light: #f4a261;
    --gradient-primary: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    
    /* Variables para redes sociales */
    --facebook-color: #1877F2;
    --facebook-dark: #0C63D4;
    --whatsapp-color: #25D366;
    --whatsapp-dark: #128C7E;
}

/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   line-height: 1.6;
   color: var(--gray-800);
   background: #64707b;
   overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(44, 62, 80, 0);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(0px);
}

.header.scrolled {
    background: var(--azul-marino);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.header-logo:active {
    transform: scale(0.95);
}

.header-logo svg {
    width: 50px;
    height: 50px;
    background: var(--naranja-principal);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    fill: white;
}

.header-logo span {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--blanco);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-button {
    background: var(--gradient-primary);
    color: var(--blanco);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* HERO SECTION */
.contact-hero {
   background-image: 
       linear-gradient(rgba(0, 0, 0, 0.612), rgba(13, 19, 25, 0.7)),
       url('imagenes/contactanos.jpeg');
   background-size: cover;
   background-position: center center;
   background-repeat: no-repeat;
   background-attachment: fixed;
   color: var(--white);
   padding: 160px 0 0;
   text-align: center;
   min-height: 90vh;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--white), var(--naranja-claro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* HERO STATS */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--naranja-claro);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* CONTACT SECTION */
.contact-section {
   padding: 0;
   background-image: 
       linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
       url('imagenes/fondoconta.jpeg');
   background-size: cover;
   background-position: center center;
   background-repeat: no-repeat;
   background-attachment: fixed;
   margin: 0;
   width: 100%;
   min-height: 100vh;
}

/* CONTACT OPTIONS */
.contact-options-full {
    width: 100%;
    margin-bottom: 3rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2rem;
}

.contact-options {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-options h2 {
    color: var(--gray-900);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.contact-options > p {
    color: var(--gray-700);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-shrink: 0;
}

/* CONTACT CARDS */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    padding: 2rem 1.5rem;
    border-radius: 18px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: block;
    cursor: default;
    pointer-events: none;
    background: var(--gradient-secondary);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--white);
    font-weight: 600;
}

.contact-link {
    display: block;
    color: var(--orange-light);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
}

/* SOCIAL SECTION */
.social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.social-section h2 {
    color: var(--gray-900);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 550px;
    margin: 0 auto;
}

.social-card {
    display: block;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* COLORES PARA REDES SOCIALES */
.facebook-card {
    background: linear-gradient(135deg, var(--facebook-color) 0%, var(--facebook-dark) 100%);
}

.whatsapp-card {
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, var(--whatsapp-dark) 100%);
}

/* EFECTOS HOVER Y ACTIVE PARA REDES SOCIALES */
.facebook-card:hover {
    background: linear-gradient(135deg, #0C63D4 0%, #1565C0 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.5);
}

.facebook-card:active {
    background: linear-gradient(135deg, #0A4EA0 0%, #1357A5 100%);
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
    transition: all 0.1s ease;
}

.whatsapp-card:hover {
    background: linear-gradient(135deg, #128C7E 0%, #20B2A6 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-card:active {
    background: linear-gradient(135deg, #0E6F63 0%, #1B8A7A 100%);
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    transition: all 0.1s ease;
}

/* Efecto de pulso al hacer click */
.social-card:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse-click 0.6s ease-out;
}

@keyframes pulse-click {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.social-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.1) rotate(-5deg);
}

.social-card:active .social-icon {
    transform: scale(0.95) rotate(5deg);
}

.social-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.social-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* CONTACT INFO SECTION */
.contact-info-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.contact-info h2 {
    color: var(--gray-900);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* INFO ITEMS */
.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
}

.info-icon {
    font-size: 1.8rem;
    margin-right: 1.25rem;
    width: 45px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.2));
    flex-shrink: 0;
}

.info-details {
    flex: 1;
}

.info-details h3 {
    color: var(--gray-900);
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 1rem;
}

.info-details p,
.info-details a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
}

.emergency-notice {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(243, 156, 18, 0.1));
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    flex-shrink: 0;
}

.emergency-notice h3 {
    color: var(--gray-900);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

/* FOOTER */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 2rem 0;
    position: relative;
    margin: 0;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-hero {
        padding: 120px 0 80px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-options,
    .contact-info {
        padding: 2rem;
        min-height: auto;
    }
    
    .contact-options-full,
    .contact-info-section {
        padding: 0 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-cards,
    .social-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-card {
        padding: 1.75rem 1.5rem;
        min-height: 110px;
    }
    
    .social-icon {
        font-size: 2.5rem;
    }
    
    .social-card h3 {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
}