/* base.css - Estilos base/reset con colores personalizados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ====================== TUS COLORES PERSONALIZADOS ====================== */
    --verde-personalizado: #91af56;           /* Tu verde #91af56 */
    --verde-personalizado-oscuro: #7a9548;    /* Verde oscuro para hover */
    --verde-personalizado-claro: #a8c274;     /* Verde claro */
    
    --gris-personalizado: #545454;            /* Tu gris #545454 */
    --gris-personalizado-oscuro: #3a3a3a;     /* Gris oscuro */
    --gris-personalizado-claro: #707070;      /* Gris claro */
    
    --blanco-suave: #f8f9fa;                  /* Fondo suave */
    --texto-oscuro: #2c3e50;                  /* Textos principales */
    
    /* ====================== COLORES SISTEMA ====================== */
    --primary-color: var(--verde-personalizado);          /* Color principal */
    --primary-dark: var(--verde-personalizado-oscuro);    /* Color principal oscuro */
    --secondary-color: var(--gris-personalizado);         /* Color secundario */
    --dark-color: var(--texto-oscuro);                    /* Texto oscuro */
    --light-color: var(--blanco-suave);                   /* Fondo claro */
    --gray-color: var(--gris-personalizado);              /* Gris */
    --light-gray: var(--gris-personalizado-claro);        /* Gris claro */
    --danger-color: #e74c3c;                              /* Rojo para errores */
    --success-color: var(--verde-personalizado-oscuro);   /* Verde éxito */
    --warning-color: #f39c12;                             /* Naranja advertencia */

    /* ====================== TIPOGRAFÍA ====================== */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;

    /* ====================== ESPACIADOS ====================== */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* ====================== BORDES ====================== */
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* ====================== SOMBRAS CON TUS COLORES ====================== */
    --shadow-sm: 0 2px 8px rgba(145, 175, 86, 0.1);
    --shadow-md: 0 4px 16px rgba(145, 175, 86, 0.15);
    --shadow-lg: 0 8px 30px rgba(145, 175, 86, 0.2);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: white;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ====================== TIPOGRAFÍA ====================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ====================== UTILIDADES ====================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ====================== BOTONES ====================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: var(--heading-font);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--gris-personalizado-oscuro);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(84, 84, 84, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Botón WhatsApp específico */
.btn-whatsapp {
    background-color: #25D366 !important;
    color: white !important;
}

.btn-whatsapp:hover {
    background-color: #128C7E !important;
    color: white !important;
}

/* ====================== FORMULARIOS ====================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--dark-color);
    background-color: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(145, 175, 86, 0.2);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.checkbox input {
    width: auto;
}

.checkbox label {
    margin-bottom: 0;
    color: var(--gray-color);
}

/* ====================== ALERTAS ====================== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.alert-success {
    background-color: rgba(145, 175, 86, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.alert i {
    font-size: 1.5rem;
}

/* ====================== ANIMACIONES ====================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-right {
    animation: fadeInRight 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ====================== EFECTOS HOVER ====================== */
.service-card,
.exp-card,
.titulo-card,
.servicio-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(84, 84, 84, 0.1);
}

.service-card:hover,
.exp-card:hover,
.titulo-card:hover,
.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}