/* Base styles and variables */
:root {
    --color-red: #E31837;
    --color-blue: #1A237E;
    --color-gray: #333333;
    --color-lightgray: #F5F5F5;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-gray);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

.text-red {
    color: var(--color-red);
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-red);
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #c01630;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -1;
}

.logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
}

.logo img {
    height: auto;
    width: auto;
    max-height: 4rem;
    max-width: 80vw;
    object-fit: contain;
}

.hero-content {
    padding: 0 1rem;
    max-width: 48rem;
    margin: 0 auto;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--color-lightgray);
}

.services-section h2 {
    font-size: 2.5rem;
    color: var(--color-blue);
    text-align: center;
    margin-bottom: 4rem;
}

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

.service-card {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-blue);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.service-card p {
    color: #666;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background-color: white;
}

.benefits-section h2 {
    font-size: 2.5rem;
    color: var(--color-blue);
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.benefit-card {
    background-color: var(--color-lightgray);
    padding: 2rem;
    border-left: 4px solid var(--color-red);
}

.benefit-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-red);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-gray);
}

.benefit-card p {
    color: #666;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--color-lightgray);
}

.contact-container {
    max-width: 48rem;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--color-blue);
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 2px rgba(227, 24, 55, 0.2);
}

.form-submit {
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--color-gray);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 0 0 auto;
    width: 250px;
    margin-right: 2rem;
}

.footer-logo img {
    height: auto;
    max-width: 100%;
    display: block;
}

.footer-sections {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 4rem;
}

.footer-section {
    min-width: 150px;
}

.footer-section h3 {
    color: var(--color-red);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

/* Mejorar estilos para iconos sociales */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 1.75rem;
    height: 1.75rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a {
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--color-red);
}

.social-icons a:hover .social-icon {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        justify-content: space-around;
    }
    
    .footer-sections {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 2rem;
        width: 200px;
    }
    
    .footer-sections {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 1.5rem;
        min-width: auto;
        width: 100%;
        max-width: 250px;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .logo {
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 300px;
        text-align: center;
    }
    
    .logo img {
        max-height: 3.5rem;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
        margin-top: 2rem;
    }
    
    .hero-content {
        padding-top: 5rem;
    }
    
    .services-grid, 
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .benefit-card {
        padding: 1.5rem;
    }
}

/* Estilos para mensajes de formulario */
.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.success-message {
    background-color: rgba(72, 187, 120, 0.1);
    border-left: 4px solid #48bb78;
    color: #2f855a;
    padding: 1rem;
    display: none;
    font-weight: bold;
}

.error-message {
    background-color: rgba(245, 101, 101, 0.1);
    border-left: 4px solid #f56565;
    color: #c53030;
    padding: 1rem;
    display: none;
    font-weight: bold;
}

/* Estilos para campos con error */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #f56565;
    background-color: rgba(245, 101, 101, 0.05);
}

/* Estilos para animación del botón */
.btn-primary:disabled {
    background-color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-instructions {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Mejorar estilo para la nota de campos obligatorios */
.required-fields-note {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
    text-align: right;
}

/* Corregir centrado del botón de enviar */
.contact-form .form-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
}

/* Ajustar el espaciado vertical entre los elementos del formulario */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

/* Honeypot anti-spam field - ocultarlo completamente */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}