/* 
   undressaipornMX.love - Estilo único mexicano
   Colores inspirados en la bandera mexicana: verde (#006341), blanco (#ffffff), rojo (#ce1126)
   y elementos de la cultura mexicana
*/

:root {
    /* Colores Principales */
    --mexican-green: #006341;
    --mexican-red: #ce1126;
    --mexican-gold: #f1c40f;
    
    /* Colores Secundarios */
    --dark: #222;
    --light: #fff;
    --light-gray: #f5f5f5;
    --gray: #888;
    --card-bg: rgba(255, 255, 255, 0.95);
    --green-gradient: linear-gradient(135deg, #006341, #00875a);
    --red-gradient: linear-gradient(135deg, #ce1126, #e74c3c);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray);
}

/* Elemento de acento */
.accent {
    color: var(--mexican-red);
    position: relative;
}

.accent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--mexican-gold);
    border-radius: 3px;
}

/* Fondo de patrón mexicano */
.mexican-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--mexican-green) 3px, transparent 3px),
        radial-gradient(var(--mexican-red) 3px, transparent 3px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.03;
    z-index: -1;
}

/* Cabecera */
.header {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--light);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--dark);
}

.highlight {
    color: var(--mexican-green);
    font-weight: 900;
}

.main-nav {
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-gradient);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--mexican-red);
}

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

.nav-cta {
    background: var(--mexican-green);
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--mexican-red);
    transform: translateY(-3px);
}

.nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

/* Sección Hero */
.hero {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--light), rgba(0, 99, 65, 0.05));
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 0 500px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.hero-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 90%;
}

.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 196, 15, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.icon {
    width: 20px;
    height: 20px;
    fill: var(--mexican-green);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-visual {
    flex: 1 0 400px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease 0.2s;
}

.hero-visual.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Diseño de pirámide azteca */
.pyramid-design {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pyramid-top {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--mexican-gold) 0%, #e5a50a 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: perspective(500px) rotateX(30deg);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pyramid-top::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(0, 0, 0, 0.1) 20px,
        rgba(0, 0, 0, 0.1) 40px
    );
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.pyramid-shadow {
    position: absolute;
    width: 280px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    bottom: 60px;
    border-radius: 50%;
    filter: blur(15px);
    z-index: 1;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--green-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 99, 65, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 99, 65, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--mexican-green);
    border: 2px solid var(--mexican-green);
}

.btn-outline:hover {
    background: var(--mexican-green);
    color: white;
    transform: translateY(-5px);
}

.pulse {
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0, 99, 65, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(0, 99, 65, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0, 99, 65, 0.3);
    }
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Sección de Funciones */
.features {
    padding: 6rem 0;
    position: relative;
    background: var(--light-gray);
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(206, 17, 38, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--mexican-gold);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 99, 65, 0.1);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    color: var(--mexican-green);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

/* Cómo Funciona */
.how-it-works {
    padding: 6rem 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(241, 196, 15, 0.1);
    border-radius: 50%;
}

.how-it-works::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(0, 99, 65, 0.1);
    border-radius: 50%;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 80px;
    left: 39px;
    height: calc(100% - 30px);
    width: 2px;
    background: linear-gradient(to bottom, var(--mexican-green), var(--mexican-red));
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--mexican-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    margin-right: 2rem;
    box-shadow: 0 10px 20px rgba(0, 99, 65, 0.3);
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

/* Testimonios */
.testimonials {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(to right, var(--light-gray), white);
}

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

.testimonial {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--mexican-green);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.testimonial.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    margin-bottom: 2rem;
}

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

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.name {
    font-weight: 700;
    color: var(--dark);
}

.location {
    font-size: 0.9rem;
    color: var(--gray);
}

/* FAQ */
.faq {
    padding: 6rem 0;
    background: var(--light);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top left, rgba(0, 99, 65, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.faq-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--mexican-red);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.question {
    margin-bottom: 1rem;
    color: var(--mexican-green);
}

.answer {
    color: var(--gray);
}

/* CTA Final */
.final-cta {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--mexican-green), var(--mexican-red));
    position: relative;
    color: white;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-bottom: -1px;
}

.final-cta h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.final-cta p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.final-cta .btn-primary {
    background: white;
    color: var(--mexican-green);
    border: none;
}

.final-cta .btn-primary:hover {
    background: var(--mexican-gold);
    color: var(--dark);
}

/* Pie de página */
.footer {
    background-color: var(--dark);
    padding: 5rem 0 2rem;
    color: white;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: block;
}

.footer-branding p {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.7;
    color: #ddd;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--mexican-gold);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-links h4::after,
.footer-legal h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--mexican-red);
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-legal a {
    color: #ddd;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--mexican-gold);
    padding-left: 5px;
}

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

.keywords {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #999;
}

/* Responsividad */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-content {
        flex: 1 0 100%;
    }
    
    .hero-visual {
        flex: 1 0 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        padding: 6rem 2rem;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-icon {
        margin: 0 auto 1.5rem;
    }
    
    .step-content {
        text-align: center;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .pyramid-design {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
    
    .pyramid-design {
        transform: scale(0.7);
    }
}
