/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * --------------------------------
 * 1. Estilos Base para Centrar y Contenedor
 * --------------------------------
 */

/* Define el ancho máximo y centra el formulario */
.wpcf7 form {
    /* Centra el formulario completo en la página */
    margin: 0 auto; 
    max-width: 550px; /* Un ancho más angosto se ve mejor para campos de una sola columna */
    padding: 30px;
    background-color: #f7f7f7; /* Fondo suave */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Asegura que los títulos se vean bien */
.wpcf7 form h2 {
    color: #004a80;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: left;
}

/* * --------------------------------
 * 2. Estilos para Un Campo por Fila (100% de Ancho)
 * --------------------------------
 */

/* Selecciona las etiquetas <p> que contienen cada campo */
.wpcf7 form p {
    /* Desactiva cualquier potencial diseño de columna (flexbox/float) y fuerza el 100% */
    display: block !important; 
    width: 100% !important; 
    margin: 0 0 20px 0 !important; /* Margen inferior para separar las filas */
    box-sizing: border-box; 
    padding: 0;
}

/* Resetea cualquier potencial estilo de columna para las etiquetas internas */
.wpcf7 form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95em;
    width: 100% !important; /* Asegura que la etiqueta interna sea 100% */
}

/* * --------------------------------
 * 3. Estilos de Campos (Inputs)
 * --------------------------------
 */

/* Estilo profesional para todos los campos de entrada */
.wpcf7-form-control:not(.wpcf7-submit) {
    /* Aplica a todos los inputs (text, email, tel, number) excepto el botón de enviar */
    width: 100% !important; /* CRUCIAL: Ocupa el 100% de su fila */
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    display: block; /* Asegura que se comporten como bloques */
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* * --------------------------------
 * 4. Estilos de Disclaimer y Botón
 * --------------------------------
 */

/* Estilo para el botón de enviar */
.wpcf7 form input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    /* Asegura que el botón esté centrado */
    display: block;
    margin: 30px auto 0 auto; 
}

.wpcf7 form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* * --------------------------------
 * 5. Adaptabilidad (Mobile)
 * --------------------------------
 */

/* Como todos los campos ya tienen 100% de ancho, solo ajustamos el padding y márgenes para mobile */
@media (max-width: 600px) {
    .wpcf7 form {
        max-width: 95%; /* Ocupa casi todo el ancho de la pantalla */
        padding: 20px 15px;
    }
}
