:root {
    --primary-color: #008060;
    --secondary-color: #333;
    --background-color: #f0fdf9;
    --text-color: #333;
    --error-color: #ff3333;
    --success-color: #28a745;
	--header-height: 75px; /* Variable para la altura del header */

}

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

html {
    scroll-behavior: smooth;
	scroll-padding-top: var(--header-height); /* Añadimos padding para scroll */

}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.6;
}

/* Header Styles - Diseño moderno */
header {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    max-height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mobile-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.mobile-menu:hover {
    color: var(--secondary-color);
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 25px;
    margin: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

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

/* Efecto de subrayado en hover */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Botón especial para "Comenzar" */
.nav-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 50px;
    margin-left: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-button:hover {
    background-color: #006048;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 96, 0.2);
}

.nav-button::after {
    display: none;
}

/* Main Content Styles */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 5%;
    background: linear-gradient(to right, #e0f7fa, #f0fdf9);
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Estilos específicos para Elementor */
.elementor-widget-larryform_contact_form .elementor-widget-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Corrección para centrado en versión de escritorio */
.elementor .elementor-widget-larryform_contact_form .elementor-widget-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Aseguramos que el contenedor del formulario se centre correctamente */
.elementor-widget-larryform_contact_form .form-container {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #006048;
}

/* Message Styles */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success {
    background-color: var(--success-color);
    color: white;
    border-left: 5px solid #1e7e34;
}

.error {
    background-color: var(--error-color);
    color: white;
    border-left: 5px solid #bd2130;
}

.loading {
    background-color: #f8f9fa;
    color: #333;
    border-left: 5px solid #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles */
footer {
    background: #f8f8f8;
    padding: 40px 5%;
    margin-top: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-section p {
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #006048;
}

/* Responsive Header */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .mobile-menu {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
        margin: 0 auto;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        display: none;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
    }

    .nav-button {
        margin: 10px auto 0;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 5%;
    }

    .logo img {
        max-height: 40px;
    }

    h1 {
        font-size: 1.5em;
    }

    .form-container {
        padding: 15px;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom a {
        margin: 5px 0;
        display: inline-block;
    }

    .footer-bottom span {
        display: none;
    }
}