/* Archivo: styles.css
   Descripción: Estilos para Landing "Coming Soon" de Pulldrop
   Estructura: generales, header, main, footer, animaciones, focus/accesibilidad, responsive
*/

/* --- ESTILOS GENERALES --- */
:root {
    color-scheme: light;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(160deg, #1a73e8 0%, #d938c8 30%, #fdf5f2 70%, #faece8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s, outline-offset 0.2s;
}

a:hover {
    opacity: 0.7;
}

a:focus {
    outline: 2px solid #ff6fe4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: auto;
    display: block;
}

header .logo-img {
    height: 50px;
}

footer .logo-img {
    height: 20px;
}

nav {
    display: flex;
    gap: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    white-space: nowrap;
    position: relative;
    padding-bottom: 2px;
}

/* Subrayado animado al hover */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6fe4, #40c4ff);
    border-radius: 2px;
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Enlace activo (página actual) */
nav a[aria-current="page"] {
    color: white;
    opacity: 1;
}

nav a[aria-current="page"]::after {
    width: 100%;
}

nav a:focus {
    outline: 2px solid white;
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-cuenta {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- CONTENIDO PRINCIPAL --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 10px 20px 30px;
    gap: 24px;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
}

.hero-image {
    max-width: 520px;
    width: 100%;
    margin: 0 auto 0;
    animation: float 4s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    object-fit: contain;
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-top: 0;
    margin-bottom: 2px;
    line-height: 1.1;
}

.description {
    font-size: 1rem;
    color: #444;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Botón con degradado */
.cta-button {
    background: linear-gradient(90deg, #ff6fe4 0%, #40c4ff 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s, outline-offset 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* --- FOOTER --- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    background-color: #fcece7;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.8rem;
}

.footer-links a:focus {
    outline: 2px solid #ff6fe4;
    outline-offset: 2px;
    border-radius: 4px;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #b838d9;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.social-icons a:hover svg {
    transform: scale(1.1);
}

.social-icons a:focus {
    outline: 2px solid #b838d9;
    outline-offset: 4px;
    border-radius: 50%;
}

/* --- ANIMACIONES --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* --- RESPONSIVE (Tablets y Móviles) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    header .logo-img {
        height: 55px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 10px 15px 20px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    footer .logo-img {
        height: 60px;
    }
}

/* --- RESPONSIVE (Móviles pequeños) --- */
@media (max-width: 480px) {
    body {
        min-height: 100vh;
    }

    header {
        padding: 15px;
    }

    header .logo-img {
        height: 55px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    nav {
        gap: 8px 16px;
        font-size: 0.78rem;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons svg {
        width: 20px;
        height: 20px;
    }
}

/* --- PÁGINA: SOBRE NOSOTROS --- */
.about-card {
    max-width: 650px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeIn 0.6s ease-out;
}

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

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #ff6fe4, #40c4ff);
    border-radius: 2px;
}

.about-p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

.about-p:last-of-type {
    margin-bottom: 0;
}

.highlight {
    font-weight: 600;
    color: #b838d9;
}

.back-home {
    display: inline-block;
    margin-top: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a73e8;
    transition: transform 0.2s;
}

.back-home:hover {
    transform: translateX(-3px);
    opacity: 0.8;
}

@media (max-width: 680px) {
    .about-card {
        padding: 30px 20px;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-p {
        font-size: 1rem;
        text-align: left;
    }
}

/* --- MEJORAS DE ACCESIBILIDAD --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
