/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #f4f4f4;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Navbar Styles --- */
.navbar {
    background-color: #000; /* Negro */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    position: fixed;
    z-index: 1000;
    width: 96%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.brand-logo-link {
    display: flex;
    height: 100%;
}

.brand-logo {
    height: 40px;
    width: auto;
    max-height: 100%;
    vertical-align: middle;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: block;
    color: white;
    text-align: center;
    padding: 20px 0;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #1a1a1a;
}

/* Main Content */
main {
    padding-top: 6rem;
}

.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

/* Global Dark Background */
body {
    background: url("/images/esteban/esteban 3 extendida.png") no-repeat center center fixed;
    background-size: cover;
    color: #000000;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Form Styles */
.contact-form {
    max-width: 550px;
    margin: auto;
}

.solid-form {
    background-color: #0D0D0D;
    border: 0.5px solid #FFFFFF;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #FFFFFF;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000000;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: #222222;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-primary i {
    margin-left: 0.5rem;
}

/* --- Site Footer Styles --- */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.contact-section,
.social-section {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    text-align: left;
}

.contact-section h3,
.social-section h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.contact-section p {
    color: #fff;
    margin-bottom: 10px;
}

.contact-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #ccc;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5em;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ccc;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 20px auto;
    width: 80%;
    max-width: 1000px;
}

.copyright {
    color: #fff;
    font-size: 0.9em;
    margin-top: 20px;
}

/* --- Scroll-to-top button --- */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments for footer and scroll to top */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-section,
    .social-section {
        text-align: center;
        margin-bottom: 30px;
    }
}

/* Estilos para los mensajes de error y campos inválidos */
.error-message {
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 5px;
    text-align: left;
    padding-left: 5px;
}
.form-input.invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}
/* Ajustes para un mejor espaciado del formulario */
.form-group {
    margin-bottom: 1.5rem;
}