/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100vw;
    min-height: 100vh;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #181818;
    background-image: image-set(
        url('../images/city-bg.webp') type('image/webp'),
        url('../images/city-bg.png') type('image/png')
    );
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(4px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30,30,30,0.7) 0%, rgba(30,30,30,0.2) 50%, rgba(30,30,30,0.9) 100%);
    z-index: -1;
}

/* Home Page - Header centrado */
body.home-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body.home-page .main-header {
    position: relative;
    top: auto;
    left: auto;
}

body.home-page .main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Header */
.main-header {
    position: relative;
    width: 100%;
    background: transparent;
    z-index: 100;
    padding: 30px 0 20px 0;
    border-bottom: none;
}

.header-logo {
    text-align: center;
    margin-bottom: -15px;
}

.header-logo a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logo a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.header-logo img {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
    display: block;
}

.header-slogan {
    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-nav {
    text-align: center;
}

.header-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.header-nav li {
    display: inline-block;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: #fff;
}

.header-nav a:hover::after {
    width: 100%;
}

/* Enlace activo en el menú */
.header-nav a.active {
    color: #ff3333;
}

.header-nav a.active:hover {
    color: #ff3333;
}

.header-nav a.active::after {
    background: #ff3333;
    width: 100%;
}

/* Selector de Idioma */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.language-selector button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-selector button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.language-selector button.active {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    border-color: rgba(255, 255, 255, 0.9);
}

/* Contenido Principal */
.main-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.content-box {
    width: 90%;
    max-width: 1200px;
    min-height: 600px;
    height: auto;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.content-box h1 {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 30px;
    text-align: center;
}

/* Formulario de Contacto */
.contact-intro {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto 35px auto;
    max-width: 600px;
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.required {
    color: #ff3333;
    font-size: 0.75rem;
    font-weight: 400;
}

.optional {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #ff3333;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #ff4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.form-status.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

/* Footer */
.main-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    background: transparent;
}

.main-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .main-header {
        padding: 15px 0 10px 0;
    }
    
    .header-logo img {
        height: 60px;
    }
    
    .header-slogan {
        font-size: 0.7rem;
        margin-bottom: 15px;
        padding: 0 20px;
    }
    
    .header-nav ul {
        gap: 20px;
        padding: 0 15px;
    }
    
    .header-nav a {
        font-size: 0.8rem;
    }
    
    .language-selector {
        top: 15px;
        right: 15px;
        gap: 5px;
    }
    
    .language-selector button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-nav ul {
        gap: 15px;
    }
    
    .header-nav a {
        font-size: 0.75rem;
    }
    
    .header-slogan {
        font-size: 0.65rem;
    }
}