/* AYUNSUE - Tienda Online de Ropa
   Diseño: Moderno, minimalista, elegante
   Colores: Blanco, Negro, Beige/Dorado suave
   Tipografía: Poppins (cuerpo), Playfair Display (títulos)
*/

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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #c9a961;
    --text-color: #333333;
    --light-bg: #f8f8f8;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-message {
    margin: 0;
    font-weight: 500;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 80px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
    height: 100%;
    align-items: center;
    order: 1;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.logo-text {
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
    order: 2;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    order: 3;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    color: var(--accent-color);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #b8954f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1.125rem 3rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
}

/* ============================================
   CONTAINER & SPACING
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    overflow-x: hidden;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

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

.badge {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.badge-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    margin: 0 auto 1rem;
}

.badge h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.badge p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   FEATURED PRODUCTS
   ============================================ */

.featured-products {
    background-color: var(--secondary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits {
    background-color: var(--light-bg);
}

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

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-item p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process {
    background-color: var(--secondary-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    width: 2rem;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateY(-50%);
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    background-color: var(--light-bg);
}

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

.feature-box {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent-color);
}

.feature-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.feature-box p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   SOCIAL PROOF / TESTIMONIALS
   ============================================ */

.social-proof {
    background-color: var(--secondary-color);
}

.rating-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rating-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

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

.testimonial {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
    background-color: var(--light-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--secondary-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    user-select: none;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-question::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    color: var(--secondary-color);
    text-align: center;
    padding: 4rem 2rem;
}

.newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: #999;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #333;
}

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

.footer-section h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

.footer-content::after {
    content: '';
    grid-column: 1 / -1;
    height: 1px;
    background-color: #333;
}

.footer-content {
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 2rem 0;
    }

    .navbar-container {
        padding: 2rem;
        min-height: auto;
        flex-direction: column;
        gap: 2rem;
    }

    .logo {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .nav-menu {
        order: 2;
        gap: 1rem;
        font-size: 0.9rem;
        width: 100%;
        flex: none;
    }

    .nav-icons {
        order: 3;
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hero {
        align-items: center;
        padding-top: 2rem;
    }

    .hero-content {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-container {
        padding: 1rem;
    }

    .nav-menu {
        gap: 0.3rem;
        font-size: 0.65rem;
    }

    .nav-icons {
        gap: 0.5rem;
    }

    .logo-img {
        height: 120px !important;
    }

    .hero {
        height: 350px;
        align-items: center;
        padding-top: 1.5rem;
    }

    .hero-content {
        margin-top: 1.5rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .faq-item {
        margin-bottom: 0.75rem;
    }

    .benefit-item {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    /* Sección de Contacto */
    section[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }

    section[style*="grid-template-columns: 1fr 1fr"] > div {
        margin-bottom: 2rem;
    }

    section[style*="grid-template-columns: 1fr 1fr"] h2 {
        font-size: 1.25rem !important;
    }

    section[style*="grid-template-columns: 1fr 1fr"] form {
        gap: 1rem !important;
    }

    section[style*="grid-template-columns: 1fr 1fr"] input,
    section[style*="grid-template-columns: 1fr 1fr"] select,
    section[style*="grid-template-columns: 1fr 1fr"] textarea {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.opacity-75 { opacity: 0.75; }
.opacity-50 { opacity: 0.5; }
