
/* Estilos Base - Español */
:root {
    --primary: #1E3A8A;  /* Dark blue */
    --primary-dark: #1D4ED8;
    --secondary: #3B82F6;  /* Soft blue */
    --secondary-dark: #1E40AF;
    --light: #FFFFFF;
    --dark: #1E3A8A;   /* Dark blue */
    --text-on-white: #1E3A8A; /* Blue text */
    --accent: #1E3A8A; /* Dark blue for highlights */
}
body {
    line-height: 1.6;
    color: #1E3A8A; /* Dark blue text */
    background-color: white;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    hyphens: auto;
    word-wrap: break-word;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.section {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}
/* Accessibility Focus Styles */
a:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* FAQ Animation */
.border-gray-200 {
    transition: all 0.3s ease;
    cursor: pointer;
}

.border-gray-200:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.border-gray-200 p {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Effects */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* Ensure all links have proper cursor */
a {
    cursor: pointer;
}
/* Urgent button effects */
.bg-red-600, .bg-gradient-to-r.from-red-600.to-red-700 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px -5px rgba(239, 68, 68, 0.4);
    color: white !important;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bg-red-600:hover, .bg-gradient-to-r.from-red-600.to-red-700:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.5);
    animation: pulse-glow 1.5s infinite;
}
.bg-red-600::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    animation: shine 6s infinite;
}
.bg-red-600:hover {
    background-color: #b91c1c;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
    color: white !important;
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}
/* Highlighted Sections */
.highlight-section {
    background: white !important;
    color: #1E3A8A !important;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding: 6rem 2rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 0;
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0% 100%);
}

.highlight-section:nth-child(odd) {
    background: linear-gradient(to bottom, #f8fafc, white) !important;
}

.highlight-section:nth-child(even) {
    background: white !important;
}
.highlight-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
/* Ensure text is visible on all backgrounds */
.bg-white, .bg-gray-50, .bg-white {
    color: #1f2937;
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white p,
.bg-white span,
.bg-white li {
    color: #1f2937;
}

/* Darker text for better contrast */
.bg-blue-50 {
    color: #1f2937 !important;
}

.bg-blue-50 h1,
.bg-blue-50 h2,
.bg-blue-50 h3,
.bg-blue-50 p,
.bg-blue-50 span,
.bg-blue-50 li {
    color: #1f2937 !important;
}

/* Gradient background text contrast */
.gradient-bg {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.gradient-bg h1, 
.gradient-bg h2, 
.gradient-bg h3, 
.gradient-bg p,
.gradient-bg span,
.gradient-bg li {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
padding: 3rem 2rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.highlight-section h2,
.highlight-section h3,
.highlight-section p {
    color: white !important;
}

.highlight-section .divider {
    background-color: white !important;
}
/* Emotional Development Box */
.bg-blue-50 {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(219, 234, 254, 0.9) 100%) !important;
    color: #1f2937 !important;
font-weight: 500;
    border: none;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.bg-blue-50::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);  /* Brighter shine effect */
transform: rotate(30deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}
/* Card Effects */
.card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    color: var(--text-on-white);
    font-weight: 600;
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #f9f9f9, #ffffff);
}
.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED, #4338CA);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
img:hover {
    transform: scale(1.02);
}
/* Gradient Backgrounds */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.gradient-bg {
    background: linear-gradient(135deg, #1e40af 0%, #6b21a8 100%);
    color: white !important;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 8rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.gradient-bg::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
}
.gradient-bg::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    animation: shine 8s infinite;
}
.gradient-bg h1, 
.gradient-bg h2, 
.gradient-bg h3, 
.gradient-bg p,
.gradient-bg span {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
/* Floating Elements */
.floating {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}
/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
}

/* Print Styles */
@media print {
    .bg-yellow-400, .bg-blue-500, .bg-blue-600 {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    footer, #compra {
        page-break-after: avoid;
    }
}
