/* ===== VARIABLES ===== */
:root {
    --primary-blue: #2563eb;        /* Azul más vibrante y moderno */
    --primary-dark: #1e40af;         /* Azul más oscuro para gradientes */
    --accent: #FBBF24;               /* Amarillo ámbar más suave */
    --accent-hover: #FCD34D;         /* Amarillo más claro para hover */
    --text-light: #F8FAFC;           /* Gris muy claro */
    --text-dark: #334155;            /* Gris pizarra */
    --white: #FFFFFF;
    --gray-bg: #F1F5F9;              /* Fondo gris claro */
    --shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== UTILIDADES ===== */
.text-accent {
    color: var(--accent);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

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

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

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

.logo h1 {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

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

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

.nav-menu a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M10 10 L90 10 L90 90 L10 90 Z" fill="none" stroke="%23FBBF24" stroke-width="2"/><circle cx="50" cy="50" r="5" fill="%23FBBF24"/></svg>') repeat;
    pointer-events: none;
}

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

.hero-text h2 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text .highlight {
    color: var(--accent);
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-text p {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    color: var(--accent);
    font-size: 36px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    display: block;
}

.stat-label {
    color: var(--white);
    font-size: 14px;
    opacity: 0.8;
}

.hero-image {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.hero-image i {
    font-size: 120px;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-image p {
    color: var(--white);
    font-size: 18px;
    line-height: 1.8;
}

/* ===== SECCIÓN SERVICIOS ===== */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h3 {
    color: var(--primary-blue);
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header .section-subtitle {
    color: var(--text-dark);
    font-size: 18px;
    opacity: 0.8;
}

.section-header .section-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 40px;
    color: var(--accent);
}

.service-card h4 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 15px;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
    color: var(--accent);
}

.category-divider {
    grid-column: 1 / -1;
    margin: 20px 0;
    text-align: center;
}

.category-title {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
}

.category-title i {
    color: var(--accent);
    margin-right: 10px;
}

/* ===== CASOS DE ÉXITO ===== */
.success-stories {
    padding: 80px 0;
    background-color: var(--gray-bg);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-10px);
}

.story-content {
    padding: 30px;
}

.story-tag {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.story-tag i {
    margin-right: 5px;
}

.story-content h4 {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 10px;
}

.story-content p {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== BLOG ===== */
.blog {
    padding: 80px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image i {
    font-size: 60px;
    color: var(--accent);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--primary-blue);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.blog-content h4 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-content p {
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-link:hover {
    color: var(--accent);
}

/* ===== CONTACTO ===== */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
}

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

.contact-info h3 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--accent);
    font-size: 20px;
    width: 30px;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.contact-form .btn-primary {
    width: 100%;
    font-size: 16px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

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

.footer-logo p {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--accent);
}

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

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

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

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .story-card, .blog-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stories-grid,
    .blog-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid,
    .stories-grid,
    .blog-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 28px;
    }
    
    .hero-text .highlight {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h3 {
        font-size: 28px;
    }
    
    .contact-info h3 {
        font-size: 28px;
    }
}