/* ===== ESTILOS GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    line-height: 1.5;
    background-color: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: #1F4429;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}

/* ===== BOTONES ===== */
.btn-primary {
    display: inline-block;
    background-color: #1F4429;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #14331E;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #10b981;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #10b981;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #10b981;
    color: white;
}

.btn-white {
    display: inline-block;
    background-color: white;
    color: #1F4429;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-white:hover {
    background-color: #1F4429;
    color: white;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 0.25rem;
}

.logo-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1F4429;
    opacity: 0.5;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .logo-img {
        height: 20px;
    }
    
    .logo-text {
        font-size: 0.65rem;
    }
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    justify-content: space-between;
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* ===== HERO CON IMAGEN DE FONDO ===== */
.hero {
    position: relative;
    text-align: center;
    padding: 6rem 0;
    background-image: url('../imagenes/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 68, 41, 0.75) 0%, rgba(31, 68, 41, 0.70) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 1.5rem auto;
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 4rem 0;
}

.section-light {
    background-color: #ecfdf5;
}

/* ===== TABLA COMPARATIVA ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.comparison-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.comparison-card li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
}

.comparison-card.solution li::before {
    content: "✓";
    color: #10b981;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TARJETAS DE SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: #10b981;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-benefit {
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.service-badge {
    display: inline-block;
    background-color: #ecfdf5;
    color: #10b981;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.service-card .btn-secondary {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* ===== BENEFICIOS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.benefit-icon {
    font-size: 1.5rem;
    color: #10b981;
}

/* ===== FORMULARIO ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
}

.form-note {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
}

/* ===== CLIENTES ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

.client-logo {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    color: #4b5563;
    width: 100%;
    transition: background 0.3s ease;
}

.client-logo:hover {
    background: #e5e7eb;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #10b981;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    font-size: 0.875rem;
}

/* ===== BANNER COOKIES ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 1000;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.875rem;
}

.cookie-banner button {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.cookie-banner button:hover {
    background-color: #059669;
}

/* ===== PÁGINAS DE SERVICIOS ===== */
.service-hero {
    background-color: #ecfdf5;
    padding: 3rem 0;
    text-align: center;
}

.service-hero h1 {
    color: #1F4429;
    margin-bottom: 1rem;
}

.service-hero .benefit {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

.problems-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.problem-item, .solution-item {
    padding: 1rem;
    border-radius: 0.5rem;
}

.problem-item {
    background-color: #fee2e2;
    color: #991b1b;
}

.solution-item {
    background-color: #d1fae5;
    color: #065f46;
}

.features-list, .advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item, .advantage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .problems-table {
        grid-template-columns: 1fr;
    }
}

.cuatro-columnas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.cuatro-columnas .col {
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}