/**
 * undresserMX.pw - Estilos principales
 * Colores inspirados en la bandera mexicana: Rojo (#CE1126), Blanco (#FFFFFF), Verde (#006847)
 */

/* Reseteo y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #CE1126;
    --color-secondary: #006847;
    --color-accent: #F2B705;
    --color-background: #FFFFFF;
    --color-text: #333333;
    --color-light: #F7F7F7;
    --color-dark: #222222;
    --font-family: 'Montserrat', sans-serif;
    --shadow-normal: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-background);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

/* Header y navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-background);
    box-shadow: var(--shadow-normal);
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Sección Hero */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(247,247,247,0.9) 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(206,17,38,0.1), transparent 70%),
                radial-gradient(circle at bottom left, rgba(0,104,71,0.1), transparent 70%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-normal);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.cta-button span {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover span {
    transform: translateX(5px);
}

/* Sección de características */
.features {
    background-color: var(--color-light);
}

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

.feature-card {
    background-color: white;
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-normal);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom: 3px solid var(--color-secondary);
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

/* Sección cómo funciona */
.how-it-works {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(247,247,247,0.9) 100%);
    position: relative;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0;
    position: relative;
}

.steps:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    z-index: 1;
    opacity: 0.3;
}

.step-card {
    background-color: white;
    padding: 40px 30px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-normal);
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: -60px auto 20px;
    position: relative;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Sección FAQ */
.faq {
    background-color: var(--color-light);
}

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

.faq-item {
    background-color: white;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-normal);
}

.faq-item h3 {
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.faq-item h3:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-item.active h3:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

/* Sección de banner CTA */
.cta-banner {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta-banner h2 {
    color: white;
}

.cta-banner h2:after {
    background: white;
}

.cta-banner .cta-button {
    background: white;
    color: var(--color-primary);
    margin-top: 20px;
}

.cta-banner .cta-button:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
}

.footer-favicon {
    margin-top: 20px;
    display: block;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-links-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    border: none;
    z-index: 99;
    pointer-events: none;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .steps:before {
        display: none;
    }
    
    .step-card {
        margin-bottom: 50px;
    }
    
    .step-number {
        margin: -20px auto 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-background);
        box-shadow: var(--shadow-normal);
        padding: 20px 0;
        clip-path: circle(0% at top right);
        transition: all 0.4s ease-in-out;
        pointer-events: none;
        opacity: 0;
        gap: 0;
    }
    
    .nav ul.active {
        clip-path: circle(150% at top right);
        pointer-events: all;
        opacity: 1;
    }
    
    .nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav ul li a {
        display: block;
        padding: 15px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-favicon {
        margin: 20px auto;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-column {
        text-align: center;
    }
}

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

.feature-card, .step-card, .faq-item {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.3s; }
.step-card:nth-child(3) { animation-delay: 0.5s; }
