/* Variables de color y fuentes */
:root {
    --primary: #FF5722; /* Naranja indio */
    --secondary: #FFC107; /* Amarillo ámbar */
    --accent: #4CAF50; /* Verde */
    --dark: #212121;
    --light: #FAFAFA;
    --grey: #757575;
    --light-grey: #F5F5F5;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --radius: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Encabezado y Navegación */
.site-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

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

.logo h1 {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 21px;
}

.nav-toggle-label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle-label span:nth-child(1) { top: 0; }
.nav-toggle-label span:nth-child(2) { top: 9px; }
.nav-toggle-label span:nth-child(3) { top: 18px; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.main-nav a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.main-nav a:not(.cta-button):hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background-image: 
        radial-gradient(circle at top right, rgba(255, 87, 34, 0.1), transparent 400px),
        radial-gradient(circle at bottom left, rgba(255, 193, 7, 0.1), transparent 400px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
}

.title-decoration {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-grey);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.hero-text h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary);
    opacity: 0.3;
    z-index: -1;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--grey);
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 87, 34, 0.4);
}

.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.hero-visual {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
}

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

.feature-card p {
    color: var(--grey);
}

/* Steps Section */
.steps-section {
    padding: 100px 0;
    background-color: var(--light-grey);
}

.steps-container {
    margin-top: 60px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.step-number {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 30px;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
    width: 100%;
}

.step-content p {
    color: var(--grey);
    width: calc(100% - 70px);
}

.step-icon {
    width: 60px;
    opacity: 0.8;
}

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

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: white;
}

.faq-container {
    margin-top: 60px;
}

.faq-item {
    background: var(--light-grey);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--dark);
    padding-right: 30px;
}

.toggle-icon {
    position: absolute;
    right: 30px;
    width: 20px;
    height: 20px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--primary);
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transition: var(--transition);
}

.toggle-icon::after {
    transform: rotate(90deg);
}

.faq-item.active .toggle-icon::after {
    transform: rotate(0);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 1000px;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: white;
    padding: 70px 0 30px;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.site-name {
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-legal {
    opacity: 0.5;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 30px;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .hero-text h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        padding-top: 80px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0 30px;
    }
    
    .main-nav li {
        margin-bottom: 15px;
    }
    
    #nav-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }
    
    .step-content {
        flex-direction: column;
    }
    
    .step-content p {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .step-icon {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .cta-group {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
