/* Reset y variables CSS con TU paleta */
:root {
    --primary-color: #672c90;    /* Morado principal */
    --secondary-color: #fffe06;  /* Amarillo secundario */
    --accent-color: #e02b88;     /* Rosa para botones */
    --dark-color: #2D3250;       /* Azul oscuro */
    --light-color: #F5F5F5;      /* Fondo claro */
    --text-color: #333333;       /* Texto principal */
    --text-light: #666666;       /* Texto secundario */
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Utilidades de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Container responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* HEADER Y NAVEGACIÓN */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo h1 {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* MENÚ HAMBURGUESA MEJORADO */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--primary-color);
}

.menu-toggle:hover .hamburger,
.menu-toggle:focus .hamburger {
    background: var(--white);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(5px);
}

/* Estado abierto del menú hamburguesa */
.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--white);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--white);
}

.menu-toggle[aria-expanded="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navegación principal */
nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

nav a:hover,
nav a:focus,
nav a[aria-current="page"] {
    background: var(--primary-color);
    color: var(--white);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #8a3db6);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}
hero-prefooter {
    background: linear-gradient(135deg, var(--primary-color), #8a3db6);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
  }

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* BOTONES CON TUS COLORES */
.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.button.primary {
    background: var(--accent-color);
    color: var(--white);
}

.button.primary:hover,
.button.primary:focus {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    outline: none;
}

.button.secondary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.button.secondary:hover,
.button.secondary:focus {
    background: var(--primary-color);
    color: var(--white);
    outline: none;
}

/* FEATURES SECTION */
.features {
    padding: 4rem 0;
    background: var(--light-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* FOOTER ACTUALIZADO */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h2,
.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* LÍNEA INFERIOR CON TU TEXTO */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--white);
    margin: 0;
}

/* Efecto especial para el corazón */
.heart {
    display: inline-block;
    animation: heartbeat 2s ease-in-out infinite;
}

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

/* MEDIA QUERIES para el footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Respetar preferencia de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .heart {
        animation: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
}
/* MEDIA QUERIES - MÓVIL FIRST */

/* Tabletas y móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
        gap: 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 1rem;
        border-radius: 0;
        text-align: center;
        border-bottom: 1px solid var(--light-color);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features {
        padding: 2rem 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .button {
        padding: 0.75rem 1.5rem;
        width: 100%;
        max-width: 280px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }
}

/* Tabletas en landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    nav ul {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Modo alto contraste para accesibilidad */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ffff00;
        --accent-color: #ff0000;
        --text-color: #000000;
        --light-color: #FFFFFF;
    }
}

/* Reduce movimiento para personas sensibles */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
}
/* SECCIÓN SÍGUENOS INDEPENDIENTE */
.follow-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    margin: 2rem 0;
    text-align: center;
}

.follow-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.social-links-row {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.social-links-row a {
    color: var(--white);
    text-decoration: none;
    padding: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links-row a:hover,
.social-links-row a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.25rem;
}

.social-note {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: 0;
}

/* ACTUALIZAR FOOTER CONTENT PARA NUEVA ESTRUCTURA */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 0;
}
.footer-section {
  text-align: center;
  }

.footer-section h3 {
    margin-bottom: 0.5rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links-row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
    
    .follow-section {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .follow-section {
        padding: 1rem 0;
        margin: 1rem 0;
    }
    
    .social-links-row {
        font-size: 0.9rem;
    }
    
    .social-note {
        font-size: 0.75rem;
    }
}

/* Mejoras de focus para teclado */
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}