/* Variables CSS */
:root {
    --primary-color: #8B5CF6;
    --secondary-color: #06B6D4;
    --accent-color: #F59E0B;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-instagram: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    --gradient-email: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 35px 60px -12px rgba(0, 0, 0, 0.4);
    --border-radius: 24px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Asegurar que todo el contenido sea responsive */
* {
    box-sizing: border-box;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.container {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Uso de viewport dinámico para móviles */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 100vw;
}

/* Animación de fondo */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Contenido principal */
.main-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

/* Sección del logo */
.logo-section {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 0; /* Sin border-radius para respetar la forma original */
    box-shadow: none; /* Sin sombra de caja para evitar cuadrados */
    transition: all 0.4s ease;
    /* Optimización para PNG transparente de alta calidad */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: auto;
    /* Mantener transparencia total */
    background: none;
    padding: 0;
    /* Suavizado de bordes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Sombra que respeta la forma del logo */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.logo:hover {
    transform: scale(1.15) rotate(8deg);
    /* Sombra más intensa que respeta la forma del logo */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
    /* Brillo sutil */
    opacity: 0.95;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* Sección del mensaje */
.message-section {
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.description {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description-highlight {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

.description-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Barra de carga */
.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    border-radius: 20px;
    width: 0%;
    animation: loading 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 75%; }
    100% { width: 100%; }
}

/* Tarjetas de contacto */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.4s both;
    padding: 0 10px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-card:active {
    transform: translateY(-5px) scale(0.98);
    transition: all 0.1s ease;
}

.instagram-card:hover {
    background: var(--gradient-instagram);
}

.whatsapp-card:hover {
    background: var(--gradient-whatsapp);
}

.email-card:hover {
    background: var(--gradient-email);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--text-light);
}

.contact-card:hover .card-icon {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.3);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.card-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.card-content .click-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-style: italic;
}

.qr-code {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto 0;
    display: inline-block;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-code canvas {
    border-radius: 8px;
}

/* Estilos para imágenes QR y email */
.qr-image,
.email-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.email-icon {
    padding: 10px;
}

.schedule {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.schedule p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.schedule strong {
    color: var(--text-light);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.footer p {
    margin: 5px 0;
}

.footer-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Mobile First Approach */

/* Móviles pequeños (hasta 575px) */
@media (max-width: 575px) {
    .container {
        padding: 15px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .description-highlight {
        font-size: 0.8rem !important;
        white-space: normal !important;
        word-break: break-word;
    }
}

/* Tablets y pantallas medianas (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 30px;
    }
    
    .logo {
        width: 110px;
        height: 110px;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
        transition: all 0.3s ease;
    }
    
    .logo:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
    }
    
    .brand-name {
        font-size: 3rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .description {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .description-highlight {
        font-size: 1.0rem;
        white-space: nowrap;
    }
    
    .description-text {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        max-width: 550px;
    }
    
    .contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .contact-card {
        padding: 35px 25px;
    }
}

/* Móviles en landscape y tablets pequeñas (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 25px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .brand-name {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }
    
    .title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .description {
        font-size: 1.05rem;
        max-width: 550px;
    }
    
    .description-highlight {
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .description-text {
        font-size: 1.05rem;
    }
    
    .subtitle {
        font-size: 1.15rem;
        max-width: 500px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-card {
        padding: 30px 25px;
    }
    
    .loading-bar {
        width: 280px;
    }
}

/* Móviles (hasta 575px) */
@media (max-width: 575px) {
    .container {
        padding: 20px 15px;
        min-height: 100vh;
    }
    
    .main-content {
        max-width: 100%;
        padding: 0;
    }
    
    .logo-section {
        margin-bottom: 40px;
    }
    
    .logo {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
        transition: all 0.3s ease;
        /* Asegurar calidad en móviles */
        image-rendering: auto;
        shape-rendering: geometricPrecision;
    }
    
    .logo:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
    }
    
    .brand-name {
        font-size: 2.2rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }
    
    .message-section {
        margin-bottom: 50px;
    }
    
    .title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .description {
        font-size: 0.95rem;
        max-width: 480px;
    }
    
    .description-highlight {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .description-text {
        font-size: 0.95rem;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .loading-bar {
        width: 250px;
        height: 6px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .contact-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .card-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .card-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .click-hint {
        font-size: 0.85rem !important;
        margin-top: 8px !important;
    }
    
    .qr-code {
        padding: 15px;
        margin: 15px auto 0;
    }
    
    .qr-image,
    .email-icon {
        width: 120px;
        height: 120px;
    }
    
    .schedule {
        padding: 12px;
        margin-top: 15px;
    }
    
    .schedule p {
        font-size: 0.9rem;
        margin: 3px 0;
    }
    
    .footer {
        padding: 25px 0;
    }
    
    .footer p {
        font-size: 0.9rem;
        margin: 3px 0;
    }
    
    .footer-subtitle {
        font-size: 0.85rem;
    }
}

/* Móviles muy pequeños (hasta 320px) */
@media (max-width: 320px) {
    .container {
        padding: 15px 10px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .brand-name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 0.85rem;
        max-width: 300px;
    }
    
    .description-highlight {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .description-text {
        font-size: 0.85rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .loading-bar {
        width: 200px;
        height: 5px;
    }
}

/* Pantallas grandes (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding: 40px;
    }
    
    .main-content {
        max-width: 1400px;
    }
    
    .logo {
        width: 140px;
        height: 140px;
        filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.2));
        transition: all 0.3s ease;
    }
    
    .logo:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.3));
    }
    
    .brand-name {
        font-size: 4rem;
        letter-spacing: 3px;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .description {
        font-size: 1.3rem;
        max-width: 750px;
    }
    
    .description-highlight {
        font-size: 1.15rem;
        white-space: nowrap;
    }
    
    .description-text {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
        max-width: 700px;
    }
    
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .contact-card {
        padding: 50px 40px;
    }
    
    .qr-image,
    .email-icon {
        width: 160px;
        height: 160px;
    }
    
    .loading-bar {
        width: 400px;
        height: 10px;
    }
}

/* Pantallas ultra anchas (1600px+) */
@media (min-width: 1600px) {
    .container {
        padding: 60px;
    }
    
    .logo {
        width: 160px;
        height: 160px;
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.25));
        transition: all 0.3s ease;
    }
    
    .logo:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.35));
    }
    
    .brand-name {
        font-size: 4.5rem;
    }
    
    .title {
        font-size: 3.5rem;
    }
    
    .description {
        font-size: 1.4rem;
        max-width: 850px;
    }
    
    .description-highlight {
        font-size: 1.25rem;
        white-space: nowrap;
    }
    
    .description-text {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
        max-width: 800px;
    }
    
    .qr-image,
    .email-icon {
        width: 180px;
        height: 180px;
    }
}

/* Pantallas extra anchas (2000px+) - permitir texto más grande */
@media (min-width: 2000px) {
    .description-highlight {
        font-size: 1.4rem;
        white-space: nowrap;
    }
}

/* Ajustes para orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 15px;
    }
    
    .logo-section {
        margin-bottom: 20px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .brand-name {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .message-section {
        margin-bottom: 30px;
    }
    
    .title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .qr-code {
        display: none; /* Ocultar QR en landscape para ahorrar espacio */
    }
    
    .footer {
        padding: 15px 0;
    }
}

/* Mejoras de accesibilidad y rendimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shape {
        animation: none !important;
    }
    
    .loading-progress {
        animation: none !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .contact-card {
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .click-hint {
        color: rgba(255, 255, 255, 1) !important;
        font-weight: 600;
    }
}