/* Main CSS file for Página Azul */

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
}

/* Header styles */
header {
    position: sticky;
    top: 0;
    z-index: 10000; /* más alto que el ad */
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
}

/* Card gradient effect */
.card-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 60%);
}

/* Smooth transitions */
.transition-all-smooth {
    transition: all 0.3s ease-in-out;
}

/* Instagram card styles */
.insta-card {
    height: 450px; /* Ajusta según tu preferencia */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.insta-card blockquote {
    transform: scale(0.85); /* Reduce el tamaño del embed */
    transform-origin: top left;
    width: 400px !important; /* Mantener ancho uniforme */
}

/* Ad display styles */
.ad-mobile {
    display: none;
}

/* Mostrar el anuncio de escritorio por defecto */
.ad-desktop {
    display: block;
}

/* Cuando la pantalla es de 768px o menos (típico para móviles y tablets) */
@media (max-width: 768px) {
    .ad-desktop {
        display: none; /* Oculta el de escritorio */
    }
    .ad-mobile {
        display: block; /* Muestra el móvil */
    }
}

/* Custom utility classes */
.bg-background {
    background-color: #0a0a0a;
}

.text-primary {
    color: #00aff0;
}

.bg-primary {
    background-color: #00aff0;
}

.bg-card {
    background-color: #1a1a1a;
}

.text-muted {
    color: #888888;
}

/* SEO content section styles */
.seo-content-section {
    margin-bottom: 3rem;
    background-color: rgba(26, 26, 26, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-content-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.seo-feature-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .seo-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.seo-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seo-feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 175, 240, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.seo-feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #00aff0;
}

.seo-feature-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.seo-feature-description {
    color: #888888;
    font-size: 0.875rem;
}

/* Responsive design improvements */
@media (max-width: 640px) {
    .insta-card {
        height: 400px;
    }
    
    .insta-card blockquote {
        transform: scale(0.75);
        width: 350px !important;
    }
}

@media (max-width: 480px) {
    .insta-card {
        height: 350px;
    }
    
    .insta-card blockquote {
        transform: scale(0.7);
        width: 300px !important;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #00aff0;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .ad-desktop,
    .ad-mobile {
        display: none !important;
    }
    
    header {
        position: static;
    }
}
