/*
Theme Name: GES4 Evento
Theme URI: https://ges4.tsukineko.es
Description: Tema minimalista para landing page de evento con 3 páginas
Version: 1.0
Author: Tu Nombre
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ges4
*/

/* Reset básico */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Contenedor principal con imagen de fondo */
.site-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('/wp-content/uploads/2025/12/background_ges4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.site-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .site-header {
        padding: 15px 0;
    }
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    .header-container {
        padding: 0 15px;
    }
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

@media (max-width: 767px) {
    .site-logo img {
        max-height: 45px;
    }
}

/* Navegación */
.main-navigation {
    display: block;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #007bff;
}

/* Menú móvil */
@media (max-width: 767px) {
    .main-navigation {
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .main-navigation.mobile-open {
        max-height: 300px;
        padding: 20px 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 15px 10px;
        color: #333;
        font-size: 16px;
    }

    .main-navigation a:hover {
        background: rgba(0, 123, 255, 0.1);
        color: #007bff;
    }
}

/* Contenido principal */
.site-content {
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Espacio para el header fijo */
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px; /* Espacio adicional para evitar que se corte */
}

@media (max-width: 767px) {
    .site-content {
        padding-top: 95px; /* Altura aumentada en móvil para evitar solapamiento */
        padding-bottom: 30px;
    }
}

.content-area {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formularios */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #0056b3;
}

/* Estilos para Contact Form 7 */
.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 20px;
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.wpcf7-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
    width: 100%;
    padding: 14px 32px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Mensajes de validación */
.wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.wpcf7-form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.wpcf7-form .wpcf7-validation-errors {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #fff;
}

.wpcf7-form .wpcf7-mail-sent-ok {
    background: rgba(81, 207, 102, 0.15);
    border: 1px solid rgba(81, 207, 102, 0.5);
    color: #fff;
}

.wpcf7-form .wpcf7-mail-sent-ng {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #fff;
}

.wpcf7-spinner {
    margin-left: 10px;
}

/* Grupos de campos condicionales */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
}

@media (max-width: 768px) {
    .wpcf7-form label {
        font-size: 14px;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* Footer */
.site-footer {
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .content-area {
        padding: 20px;
    }
}
