/*
Theme Name: Radiotaxi Mercurio
Theme URI: https://tu-sitio-web.com/
Author: Tu Nombre o Agencia
Author URI: https://tu-sitio-web.com/
Description: Tema personalizado para Radiotaxi Mercurio, un servicio de transporte ejecutivo. Diseño moderno y profesional.
Version: 1.7
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radiotaxi-mercurio
*/

/* --- Variables y Reset Global --- */
:root {
    --primary-dark: #0D1B2A; /* Azul más oscuro para fondos y textos */
    --primary-blue: #1B263B; /* Azul intermedio */
    --secondary-blue: #415A77; /* Azul más claro para acentos y textos secundarios */
    --text-light: #E0E1DD;
    --background-light: #F7F9FA;
    --white: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: #333;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Estilos del Tema --- */

.main-header {
    background-color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex-shrink: 0;
}

.custom-logo-link .custom-logo {
    max-height: 60px;
    width: auto;
}

.header-navigation-area {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--secondary-blue);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:first-child {
    margin-left: 0;
}

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

.nav-phone {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-phone:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-menu-button { display: none; 
}
/* --- Estilos del Hero Section (Portada) --- */
.hero {
    position: relative;
    padding: 5rem 0;
    color: var(--white);
}

.hero-background, .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    z-index: 2; /* Capa de opacidad por encima del fondo */
}

.hero-content {
    position: relative;
    z-index: 3; /* El contenido va por encima de todo */
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex-basis: 55%;
}
.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-text p {
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 550px;
    opacity: 0.9;
}

.booking-form-container {
    flex-basis: 45%;
    background-color: var(--white);
    color: #333;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.booking-form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.how-it-works {
    padding: 5rem 0;
    background-color: var(--background-light);
}
.how-it-works h2, .services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 700;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--secondary-blue);
    max-width: 600px;
    margin: 0 auto;
}

.steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 2rem;
    margin-top: 3rem;
}
.step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
}
.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.services { padding: 5rem 0; }

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.service-card img.service-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card h3 {
    margin: 1.5rem 0 0.5rem 0;
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 600;
}
.service-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
}

.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-about, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}
.main-footer h3, .main-footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-about p, .footer-links a, .footer-contact p {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--white);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-blue);
    opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    .hero-text, .booking-form-container {
        flex-basis: 100%;
        max-width: 600px;
    }
    .hero-text { text-align: center; margin-bottom: 2rem; }
    .hero-text h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .header-navigation-area {
        display: none; /* Ocultamos toda el área de navegación en móviles */
    }
    .mobile-menu-button { 
        display: block; 
        background: none; 
        border: none; 
        font-size: 2rem; 
        cursor: pointer; 
        color: var(--primary-dark); 
    }
    .steps, .footer-content { 
        flex-direction: column; 
        text-align: center; 
    }
    .how-it-works h2, .services h2 { 
        font-size: 2.2rem; 
    }
}

/* --- Estilos para la Integración con WPForms (Versión Definitiva) --- */

/* Reseteo de estilos base de WPForms para tener control total */
.booking-form-container .wpforms-form input,
.booking-form-container .wpforms-form select,
.booking-form-container .wpforms-form textarea,
.booking-form-container .wpforms-form button {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    width: auto;
}

/* Contenedor principal del formulario */
.booking-form-container .wpforms-container-full .wpforms-form {
    display: flex;
    flex-direction: column;
}

/* Cada campo individual (etiqueta + input) */
.booking-form-container .wpforms-field-container .wpforms-field {
    width: 100%;
    padding: 0;
}

/* Espaciado ENTRE cada grupo de campo */
.booking-form-container .wpforms-field:not(:first-child) {
    margin-top: 1rem; 
}

/* Etiquetas de los campos (Nombre, Correo, etc.) */
.booking-form-container .wpforms-field-label {
    display: block;
    margin-bottom: 0.3rem; /* Espacio pequeño entre la etiqueta y su campo */
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Estilos para todos los campos de entrada (texto, email, select, textarea) */
.booking-form-container .wpforms-field input[type=text],
.booking-form-container .wpforms-field input[type=email],
.booking-form-container .wpforms-field select,
.booking-form-container .wpforms-field textarea {
    width: 100% !important;
    padding: 0.9rem;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: #fff !important;
    color: #333;
    line-height: normal;
}

/* El select necesita un estilo especial para la flecha */
.booking-form-container .wpforms-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23415A77%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.4-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

.booking-form-container .wpforms-field textarea {
    height: 80px;
    resize: vertical;
}

/* Estilo del botón de envío */
.booking-form-container .wpforms-submit-container .wpforms-submit {
    width: 100% !important;
    height: 50px;
    background-color: var(--secondary-blue) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Efecto hover para el botón de envío */
.booking-form-container .wpforms-submit-container .wpforms-submit:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* --- Estilos para el Menú de Navegación Dinámico --- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 0; /* Reseteamos el margen del 'a' ya que ahora lo controla el 'li' */
}

.main-nav a:hover {
    color: var(--primary-dark);
}
/* --- Estilos para Páginas Internas --- */
.page-wrapper {
    padding: 4rem 0; /* Espaciado superior e inferior */
}

.entry-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.entry-content {
    max-width: 800px; /* Ancho máximo para el texto para facilitar la lectura */
    margin: 0 auto; /* Centrar el contenido */
}

.entry-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
/* --- Estilos para la Plantilla de Servicios --- */
.service-cards-container {
    margin-top: 3rem; /* Espacio entre el texto y las tarjetas */
}
/* --- Estilos para la Plantilla de Contacto (Versión 2.0) --- */
.contact-page-wrapper.page-wrapper {
    background-color: var(--background-light); /* Fondo gris claro para la página */
    max-width: 100%; /* Hacemos que el fondo ocupe todo el ancho */
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.contact-page-wrapper .entry-title {
    margin-bottom: 1rem;
}

.contact-page-wrapper .contact-info .entry-content {
    max-width: 100%; /* El texto ocupará su columna */
    text-align: center;
    margin-bottom: 3rem; /* Espacio entre el texto y el formulario */
}

.contact-layout {
    display: flex;
    flex-direction: column; /* Apilamos los elementos verticalmente */
    align-items: center;
    gap: 0; /* Eliminamos el gap para controlar el margen desde el texto */
    margin-top: 1rem;
}

.contact-info {
    flex: none;
    width: 100%;
    max-width: 800px; /* Ancho máximo para el texto introductorio */
}

.contact-form-wrapper {
    flex: none;
    width: 100%;
    max-width: 600px; /* Ancho máximo para el formulario */
}

/* Hacemos que en móviles se vea una columna sobre la otra */
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }
}
