/* 
 * Estilo principal para nudefyMX.pw 
 * Colores de bandera mexicana: Verde #006341, Blanco #FFFFFF, Rojo #CE1126
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1em;
}

h2 span {
    color: #CE1126;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: #006341;
    transition: all 0.3s ease;
}

a:hover {
    color: #CE1126;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #666;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
}

.btn.primary {
    background-color: #006341;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 99, 65, 0.2);
}

.btn.primary:hover {
    background-color: #004d33;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 99, 65, 0.3);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid #006341;
    color: #006341;
}

.btn.secondary:hover {
    background-color: #006341;
    color: white;
}

/* Header */
header {
    padding: 1.2rem 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 1.8rem;
}

.menu li a {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.menu li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #CE1126;
    transition: width 0.3s ease;
}

.menu li a:hover:after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(0, 99, 65, 0.05) 100%);
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    color: #006341;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #CE1126;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-left: 2rem;
}

/* How it Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.step {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-8px);
}

.step-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
}

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

/* Features Section */
.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 99, 65, 0.03) 0%, rgba(206, 17, 38, 0.03) 100%);
}

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

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #ffffff;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-content {
    flex: 1;
}

.about h2 {
    text-align: left;
}

.cta-left {
    margin-top: 2rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Footer */
footer {
    background-color: #f2f2f2;
    padding: 4rem 0 2rem;
    color: #333;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.favicon-footer {
    margin-top: 1rem;
}

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

.footer-column {
    min-width: 150px;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: #006341;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #555;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: #CE1126;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about h2 {
        text-align: center;
    }
    
    .cta-left {
        text-align: center;
    }
    
    .steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .connector {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        text-align: center;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }
}
