/*
Theme Name: Ferreycorp Themes
Theme URI: https://www.ferreycorp.com.pe/
Author: Tu Nombre / Equipo de Desarrollo
Author URI: https://www.ferreycorp.com.pe/
Description: Tema institucional desarrollado a medida cumpliendo los estándares de seguridad y arquitectura de Ferreycorp.
Version: 1.0
Text Domain: ferreycorp-themes
*/

/* Aquí comenzarán tus estilos CSS */
html {
	scroll-behavior: smooth;
}
/* --- Estructura y Reset Básico --- */
body {
	font-family: Arial, sans-serif;
	margin: 0;
}

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: rect(0, 0, 0, 0);
}

a {
	text-decoration: none;
}

/* --- Cabecera: Principal (Móvil) --- */
.header-main {
	/* CORREGIDO: Formato de color */
	background-color: #1e1e1e;
}

.header-main .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px; /* Alto de la cabecera */
}

.site-logo img {
	max-height: 60px; /* Ajusta el tamaño de tu logo */
	width: auto;
}

/* Oculta la info de contacto y el menú en móvil (antes del clic) */
.header-info {
	display: none;
}

.main-navigation {
	display: none;
}

/* --- Botón Hamburguesa (Móvil) --- */
.menu-toggle {
	display: block;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001;
}

.hamburger-icon {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #fff;
	position: relative;
	transition: background-color 0.2s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 3px;
	background-color: #fff;
	left: 0;
	transition: transform 0.2s ease;
}

.hamburger-icon::before {
	top: -8px;
}

.hamburger-icon::after {
	bottom: -8px;
}

/*
 * CORRECCIÓN: Estado Activo del Botón (X)
 * - Se le da una altura de 80px (igual que la barra de logo)
 * - Se usa flexbox para centrar la 'X' verticalmente
 */
.menu-toggle.is-active {
	position: fixed; /* Fijo en la pantalla */
	top: 0; /* Alineado al borde superior del overlay */
	right: 15px;
	height: 80px; /* Misma altura que la barra del logo */
	display: flex;
	align-items: center; /* Centra la 'X' verticalmente */
	z-index: 1001; /* Por encima del overlay */
}

.menu-toggle.is-active .hamburger-icon {
	background-color: transparent; /* La línea del medio desaparece */
}

.menu-toggle.is-active .hamburger-icon::before {
	transform: translateY(8px) rotate(45deg);
	background-color: #fff !important; /* Color de la X (NEGRO) */
}

.menu-toggle.is-active .hamburger-icon::after {
	transform: translateY(-8px) rotate(-45deg);
	background-color: #fff !important; /* Color de la X (NEGRO) */
}
/* --- FIN DE CORRECCIÓN --- */

/* --- Navegación Principal (MÓVIL ACTIVO - EL OVERLAY) --- */
.main-navigation.is-active {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #1e1e1e; /* Fondo negro */
	color: #fff; /* Texto blanco */
	z-index: 1000;
	overflow-y: auto;
}

/* Oculta el menú de navegación (Página de ejemplo) DENTRO del overlay */
.main-navigation.is-active .main-menu-nav {
	display: none;
}

/* Muestra el contenido del overlay */
.main-navigation.is-active .mobile-menu-content {
	display: block;
}

/* Estilos del contenido del overlay */
.mobile-menu-content .mobile-logo {
	background: #1e1e1e;
	height: 80px; /* Misma altura que el header */
	display: flex;
	align-items: center;
	padding: 0 15px;
	position: relative;
}

.mobile-menu-content .mobile-logo h1 a {
	color: #333;
}

.mobile-menu-content .mobile-logo img {
	max-height: 60px;
	width: auto;
}

.mobile-menu-content .mobile-menu-inner-content {
	padding: 40px 15px 20px 15px;
}

.mobile-menu-content .contact-info-mobile {
	font-size: 1.2rem;
}

.mobile-menu-content .contact-info-mobile span {
	display: block;
	margin-bottom: 15px;
	font-size: 1.5rem;
	font-weight: bold;
}

.mobile-menu-content .phone-numbers {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.mobile-menu-content .phone-numbers a {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #fff;
	text-decoration: none;
	font-size: 1.2rem;
}

.mobile-menu-divider {
	border: 0;
	border-top: 1px solid #555; /* Línea divisoria gris */
	margin: 20px 0;
}

.mobile-menu-content .language-switcher-mobile {
	padding-top: 20px;
}

.mobile-menu-content .language-switcher-mobile a {
	color: #fff;
	font-size: 1.2rem;
}

/* ------------------------------------------- */
/* --- ESTILOS DESKTOP (Pantallas Grandes) --- */
/* ------------------------------------------- */

@media (min-width: 992px) {
	/* Oculta el botón hamburguesa */
	.menu-toggle {
		display: none;
	}

	/* Muestra los elementos de desktop */
	.header-info {
		display: flex;
		align-items: center;
		gap: 20px;
		font-size: 14px;
		color: #fff;
	}

	.contact-info {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.phone-numbers {
		display: flex;
		flex-direction: column;
		gap: 5px;
	}

	.phone-numbers a {
		color: #fff;
		display: flex;
		align-items: center;
		gap: 5px;
		text-decoration: none;
	}

	.language-switcher {
		position: relative;
		border-left: 1px solid #e0e0e0;
		padding-left: 20px;
	}

	.lang-toggle {
		background: none;
		border: none;
		cursor: pointer;
		font-size: 14px;
		color: #fff;
	}

	.lang-toggle:hover {
		color: #007bff;
	}

	.lang-dropdown {
		display: none;
		position: absolute;
		top: 150%;
		right: 0;
		background: white;
		border: 1px solid #e0e0e0;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		list-style: none;
		padding: 0;
		margin: 0;
		min-width: 150px;
		z-index: 100;
	}

	.lang-dropdown.is-active {
		display: block;
	}

	.lang-dropdown li a {
		display: block;
		padding: 10px 15px;
		color: #333;
		font-size: 14px;
	}

	.lang-dropdown li a:hover {
		background-color: #f9f9f9;
	}

	/* Muestra el menú de navegación de desktop */
	.main-navigation {
		display: block;
		position: static;
		width: auto;
		height: auto;
		background-color: transparent;
		padding-top: 0;
	}

	/* Muestra el wrapper del menú principal */
	.main-navigation .main-menu-nav {
		display: block;
	}

	.main-navigation ul {
		display: flex;
	}

	.main-navigation li a {
		border-bottom: none;
		font-size: 1rem;
		padding: 10px 15px;
		color: #333;
	}

	.main-navigation li a:hover {
		background-color: transparent;
		color: #007bff;
	}

	/* Oculta el contenido del overlay móvil */
	.main-navigation .mobile-menu-content {
		display: none;
	}
}

/* ----------------------------------------------------------------- */
/* --- INICIO DE CORRECCIONES (Añadido en la última respuesta) --- */
/* ----------------------------------------------------------------- */

/* --- Evita que el fondo haga scroll cuando el menú está abierto --- */
body.mobile-menu-open {
	overflow: hidden;
}

/* --- Estilos para el dropdown de idiomas MÓVIL --- */
.mobile-menu-content .language-switcher-mobile {
	position: relative; /* Contexto para el dropdown */
}

.mobile-menu-content .lang-toggle {
	display: inline-block;
	padding: 10px 0;
}

.mobile-menu-content .lang-dropdown {
	display: none; /* Oculto por defecto */
	list-style: none;
	padding: 0;
	margin: 10px 0 0 0;
	background: #333; /* Fondo un poco más oscuro */
	border-radius: 4px;
}

.mobile-menu-content .lang-dropdown.is-active {
	display: block; /* Visible al hacer clic */
}

.mobile-menu-content .lang-dropdown li a {
	color: #fff;
	padding: 10px 15px;
	display: block;
}

.mobile-menu-content .lang-dropdown li a:hover {
	background: #444;
}

/* --- CORRECCIÓN: Ajuste para la Barra de Admin de WordPress --- */
body.admin-bar .main-navigation.is-active {
	/* Mueve el overlay para que empiece DEBAJO de la barra de admin */
	top: var(--wp-admin--admin-bar--height, 46px) !important;
}

/*
 * CORRECCIÓN: Ajuste del botón 'X' para la Barra de Admin
 * - Se alinea a la barra de admin
 * - Se mantiene la altura de 80px para centrarlo
 */
body.admin-bar .menu-toggle.is-active {
	top: var(--wp-admin--admin-bar--height, 46px) !important;
}

/* Ajuste para la barra de admin en pantallas más grandes (desktop) */
@media (min-width: 783px) {
	body.admin-bar .main-navigation.is-active {
		top: var(--wp-admin--admin-bar--height, 32px) !important;
		height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)) !important;
	}

	body.admin-bar .menu-toggle.is-active {
		top: var(--wp-admin--admin-bar--height, 32px) !important;
	}
}

/* ------------------------------------------- */
/* --- 10. ESTILOS DEL CARRUSEL (HOME) --- */
/* --- ACTUALIZADO: Diseño 2 Columnas --- */
/* ------------------------------------------- */

.home-slider {
	width: 100%;
	position: relative;
	background-color: #fff;
	/* Altura automática en móvil para que el contenido empuje */
	height: auto;
}

.swiper-slide {
	background: #fff;
	height: auto;
	box-sizing: border-box;
}

/* --- Estructura Grid/Flex Principal --- */
.slide-grid-container {
	display: flex;
	flex-direction: column-reverse; /* Móvil: Texto abajo, Imagen arriba */
	height: 100%;
	padding: 0; /* Quitamos padding horizontal en móvil para que la imagen toque bordes */
}

/* Columna de Contenido (Texto) */
.slide-col-content {
	flex: 1;
	padding: 40px 30px 60px 40px; /* Padding inferior extra para la paginación */
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* align-items: center; Centrado en móvil */
	z-index: 2;
}

.slide-text-wrapper {
	width: 100%;
	max-width: 500px;
}

.slide-col-content h1,
.slide-col-content h2 {
	font-size: 2rem;
	font-weight: bold;
	margin-top: 0;
	margin-bottom: 20px;
	line-height: 1.2;
}

.slide-col-content .subtext {
	margin-top: 10px;
	font-size: 1rem;
	font-weight: 700;
}

.slide-content-button {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Botón Rojo */
.btn-red {
	width: fit-content;
	background-color: #e60000;
	color: #fff;
	padding: 14px 32px;
	text-decoration: none;
	font-weight: bold;
	font-size: 16px;
	border-radius: 50px;
	display: inline-block;
	transition: background-color 0.3s;
}

.btn-red:hover {
	background-color: #cc0000;
}

/* Estilos específicos Slide 3 (Texto + Logo) */
.slide-3-info p {
	display: none;
	font-size: 1rem;
	font-weight: 300;
	margin-bottom: 20px;
}
.slide-logo-fcorp {
	max-width: 180px;
	height: auto;
}

/* Columna de Imagen */
.slide-col-image {
	width: 100%;
	height: 250px; /* Altura de imagen fija en móvil */
}
.slide-1 {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.slide-2 {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.slide-3 {
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

/* --- PAGINACIÓN (PUNTOS) --- */
/* Wrapper para controlar la posición */
.pagination-wrapper {
	position: absolute;
	bottom: 0;
	left: 20px;
	right: 0;
	height: 0; /* No ocupa espacio físico */
	z-index: 10;
	display: flex;
}

/* Ajustes al elemento de Swiper */
.home-slider .swiper-pagination {
	position: absolute;
	bottom: 20px !important; /* Distancia desde abajo */
	left: auto !important;
	right: auto !important;
	width: auto !important;
}

.home-slider .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #1e1e1e;
	opacity: 1;
	margin: 0 6px !important;
}

.home-slider .swiper-pagination-bullet-active {
	background: #e60000; /* Rojo activo */
	width: 14px;
	height: 14px;
}

/* ================================================= */
/* --- DESKTOP (Min-Width 992px) - 2 COLUMNAS --- */
/* ================================================= */
@media (min-width: 992px) {
	.home-slider {
		height: 70vh; /* Altura fija en desktop */
		min-height: 410px;
		max-height: 800px;
	}

	.swiper-slide {
		height: 100%;
	}

	/* Layout Horizontal */
	.slide-grid-container {
		flex-direction: row; /* Izquierda Texto, Derecha Imagen */
		width: 100%;
		max-width: 1920px; /* Contener al ancho del sitio */
		margin: 0 auto;
	}

	/* Columna Texto (Izquierda) */
	.slide-col-content {
		flex: 0 0 50%; /* 50% ancho */
		align-items: flex-start; /* Alinear a la izquierda */
		text-align: left;
		padding: 0 0 0 50px; /* Espacio a la derecha */
	}

	.slide-col-content h1,
	.slide-col-content h2 {
		font-size: 3rem; /* Títulos grandes */
	}

	.slide-content-button {
		align-items: flex-start;
		flex-direction: row; /* Botón y texto lado a lado si cabe */
		gap: 1rem;
	}

	/* Columna Imagen (Derecha) */
	.slide-col-image {
		flex: 0 0 50%;
		height: 100%; /* Altura completa del slider */
	}
	.slide-1,
	.slide-2 {
		background-size: cover;
	}
	.slide-3 {
		background-size: contain;
		background-position: center;
	}

	/* Ajuste Slide 3 Desktop */
	.slide-3-info {
		text-align: left;
	}
	.slide-text-wrapper {
		max-width: 700px;
	}

	/* Paginación Desktop: Alineada a la izquierda */
	.pagination-wrapper {
		justify-content: flex-start; /* Alinear container a la izquierda */
		bottom: 50px; /* Subir un poco */
		padding-left: 40px; /* Alinear con el padding del container */
		max-width: 1440px;
		margin: 0 auto;
		pointer-events: none; /* Permitir clic a través del wrapper */
	}

	.home-slider .swiper-pagination {
		pointer-events: auto; /* Reactivar clic en los puntos */
		bottom: 0 !important;
	}
}

/* ------------------------------------------- */
/* --- 11. ESTILOS DEL GRID DE PRODUCTOS --- */
/* ------------------------------------------- */

.product-grid-section {
	padding: 40px 0;
	background-color: #fff; /* Un fondo gris claro para la sección */
}

.product-grid {
	display: grid;
	/* 1 columna en móvil */
	grid-template-columns: 1fr;
	gap: 20px;
}

.product-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
	/* Sombra sutil de la imagen */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
	position: relative; /* Para posicionar el badge */
	background: #fff;
	padding: 20px; /* Espacio blanco alrededor de la imagen */
	text-align: center;
}

.card-image-wrapper img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	max-width: 250px; /* Límite para que no sea gigante */
	margin: 0 auto;
	margin-top: 50px;
}

.card-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #333; /* Color por defecto */
	color: #fff;
	padding: 12px;
	font-size: 12px;
	border-radius: 50px;
}
.card-badge-bottom {
	position: absolute;
	bottom: 0;
	right: 15px;
	color: #333;
	font-size: 0.75rem;
}
/* Colores especiales para badges */
/* CORREGIDO: Clase en inglés */
.card-badge.badge-primary {
	background-color: #e60000;
}

/* CORREGIDO: Clase en inglés */
.card-badge.badge-dark {
	background-color: #333;
}

.card-content {
	padding: 20px;
	text-align: left;
}

.card-brand {
	max-height: 25px; /* Altura del logo de marca */
	width: auto;
	margin-bottom: 10px;
}

.card-description-card {
	height: 72px;
}

.card-title {
	font-size: 1rem;
	font-weight: bold;
	color: #333;
	margin: 0;
	padding: 0;
}
.card-price-title {
	font-size: 1rem;
	font-weight: bold;
	color: #333;
	margin: 0;
	padding-bottom: 5px;
}
.card-description {
	font-size: 1rem;
	font-weight: bold;
	color: #333;
	margin: 0 0 10px 0;
	min-height: 40px; /* Evita saltos de altura si el texto es corto */
}

.card-rating {
	color: #f39c12; /* Amarillo estrella */
	margin-bottom: 10px;
}

.card-price {
	font-size: 1.5rem;
	font-weight: bold;
	color: #333;
	margin: 0;
	margin-bottom: 5px;
}
.card-term {
	display: block;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 300;
	color: #707070;
	margin: 0;
	padding-bottom: 20px;
}

/* CORREGIDO: Clase en inglés */
.btn-dark {
	display: block;
	background: #333;
	color: #fff;
	text-align: center;
	margin: auto;
	padding: 12px;
	border-radius: 50px;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.btn-dark:hover {
	background: #000;
}

/* CORREGIDO: Clase en inglés (usada en formulario) */
.btn-primary {
	display: inline-block;
	width: 100%;
	background: #333;
	color: #fff;
	padding: 12px 24px;
	border: none;
	border-radius: 30px;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}
.wpcf7-spinner {
	width: 54px;
}
/* ------------------------------------------- */
/* --- ESTILOS RESPONSIVE PARA EL GRID --- */
/* ------------------------------------------- */

/* 2 columnas en pantallas medianas (tablets) */
@media (min-width: 576px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 4 columnas en pantallas grandes (desktop) */
@media (min-width: 992px) {
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.product-grid-section {
		padding: 60px 0;
	}
}

/* ------------------------------------------- */
/* --- 12. ESTILOS DEL BANNER DE CATÁLOGO --- */
/* ------------------------------------------- */

.catalog-banner-section {
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 60px 0;
	color: #fff;
	border-radius: 10px;
}

/* Overlay oscuro para legibilidad */
.catalog-banner-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* Overlay negro al 60% */
	border-radius: 10px;
}

/* Contenido sobre el overlay */
.catalog-banner-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: center; /* Texto a la izq, botón a la der */
	align-items: center;
}

.catalog-banner-text {
	width: auto;
	max-width: 500px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.catalog-banner-text h2 {
	font-size: 2.5rem;
	font-weight: bold;
	width: 300px;
	margin: 0 0 10px 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.catalog-banner-text p {
	font-size: 1.1rem;
	margin: 0;
}

/* CORREGIDO: Clase en inglés */
.btn-white {
	display: inline-block;
	background: #fff;
	color: #333;
	padding: 12px 24px;
	border-radius: 30px; /* Botón redondeado */
	font-weight: bold;
	font-size: 16px;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
	white-space: nowrap; /* Evita que el texto se parta */
}

.btn-white:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-white-team {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}
.btn-white-team img {
	width: 24px;
}
/* ------------------------------------------- */
/* --- ESTILOS RESPONSIVE PARA EL BANNER --- */
/* ------------------------------------------- */
@media (min-width: 768px) {
	.catalog-banner-content {
		flex-direction: row;
		gap: 40px;
	}
	.catalog-banner-text {
		text-align: left;
		align-items: start;
	}
}
/* En móvil, apila el contenido */
@media (max-width: 768px) {
	.catalog-banner-content {
		align-items: center; /* Alinea todo a la izquierda */
		justify-content: center;
	}
	.catalog-banner-text {
		text-align: center;
	}
	.catalog-banner-text h2 {
		font-size: 2rem;
	}

	.catalog-banner-button {
		margin-top: 20px; /* Espacio entre el texto y el botón */
	}
}

/* ------------------------------------------- */
/* --- 13. ESTILOS DE SECCIÓN DE FORMULARIO --- */
/* ------------------------------------------- */

.form-section {
	padding: 60px 0;
	background: #fff;
}

.form-section-wrapper {
	display: grid;
	/* 1 columna en móvil */
	grid-template-columns: 1fr;
	gap: 30px;
}

/* --- Columna Izquierda: Formulario --- */
.form-column {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	padding: 20px;
}

.form-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.form-header h3 {
	margin: 0;
	font-size: 1.5rem;
}

.close-form-btn {
	background: none;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	color: #888;
}

.contact-form {
	padding: 0 40px 40px 40px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-row {
	display: flex;
	flex-direction: column; /* Apilado en móvil */
	gap: 15px;
}
.group-captcha p {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.form-group {
	flex: 1; /* Ocupa espacio disponible */
}

.form-group label {
	display: block;
	font-weight: bold;
	font-size: 0.9rem;
	margin-bottom: 8px;
	color: #333;
}
.form-group p {
	margin: 12px 0;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box; /* Importante para que el padding no rompa el layout */
	font-size: 1rem;
}

.form-group input::placeholder {
	color: #aaa;
	font-size: 0.8rem;
}

.form-group select,
.wpcf7-form select {
	color: #aaa;
	font-size: 0.8rem;
	background-color: #fff !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 15px center !important;
	padding-right: 40px;
}

.form-group select option {
	color: #333;
}
.form-group br {
	display: none;
}

.form-group.disclaimer {
	font-size: 0.8rem;
	margin-top: 10px;
}

.form-group.disclaimer span.wpcf7-list-item label {
	display: flex;
	align-items: flex-start; /* Mantiene el checkbox arriba si el texto ocupa 2 líneas */
	gap: 8px;
	margin-bottom: 0;
	font-weight: normal;
	text-align: left;
}

.form-group.disclaimer input[type="checkbox"] {
	width: auto;
	margin-top: 3px;
	flex-shrink: 0;
}

.form-group.disclaimer label {
	margin-bottom: 0;
	font-weight: normal;
}

.form-group.disclaimer a {
	color: #007bff;
	text-decoration: underline;
}

.form-buttons {
	display: flex;
	flex-direction: column; /* Apilado en móvil */
	gap: 10px;
	margin-top: 20px;
}

/* CORREGIDO: Clase en inglés */
.btn-secondary {
	display: inline-block;
	width: 100%;
	background: transparent;
	color: #333;
	padding: 12px 24px;
	border-radius: 30px;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	border: 1px solid #333;
	box-sizing: border-box;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
	cursor: pointer;
}

.btn-secondary:hover {
	background-color: #f9f9f9;
}

/* CORREGIDO: Clase en inglés */
.btn-secondary-marcas {
	background: transparent;
	color: #fff;
	padding: 12px 24px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	border: 1px solid #fff;
	cursor: pointer;
}

/* Re-usamos btn-dark, pero lo forzamos a ser redondeado */
.form-buttons .btn-dark {
	border-radius: 30px;
}

/* --- Columna Derecha: Info Boxes --- */
.info-column {
	display: grid;
	grid-template-columns: 1fr; /* 1 columna en móvil */
	gap: 20px;
}

.info-box {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	min-height: 120px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background-size: cover;
	background-position: center;
}

.info-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
}

.info-box-content {
	position: relative;
	z-index: 10;
	text-align: center;
}

.info-box h3 {
	font-size: 24px;
	margin: 0 0 5px 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.info-box p {
	margin: 0;
	font-size: 1rem;
}

/* ------------------------------------------- */
/* --- ESTILOS RESPONSIVE PARA EL FORMULARIO --- */
/* ------------------------------------------- */

@media (min-width: 768px) {
	.form-row {
		flex-direction: row;
	}
	.form-buttons p {
		display: flex; /* Lado a lado */
		align-items: center;
		justify-content: center;
		width: 100%;
		gap: 20px;
	}
}
/* En desktop, 2 columnas */
@media (min-width: 992px) {
	.form-section-wrapper {
		/* 60% para el form, 40% para los boxes */
		grid-template-columns: 3fr 2fr;
		gap: 40px;
		/* align-items: start;  Alinea la parte superior de las columnas */
	}
}

/* ------------------------------------------- */
/* --- 14. ESTILOS DE SECCIÓN DE MARCAS --- */
/* ------------------------------------------- */

.brands-section {
	padding: 60px 0;
	/* Un fondo azul/gris muy claro, según la imagen */
	background-color: #f5f5f5;
}

.brands-section .section-title {
	font-size: 1.3rem;
	font-weight: bold;
	color: #333;
	margin: 0 0 30px 0;
	padding-left: 15px; /* Para alinear con el contenedor */
}

.brands-grid {
	display: grid;
	/* 1 columna en móvil */
	grid-template-columns: 1fr;
	gap: 20px;
}

.brand-card {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	display: flex;
	flex-direction: column; /* Apilado en móvil */
	align-items: center;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	min-height: 150px; /* Altura mínima para consistencia */
}

.brand-card-logo {
	margin-bottom: 20px;
	min-height: 50px; /* Evita saltos de layout */
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-card-logo img {
	width: 180px;
}

.brand-card-text p {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.6;
	margin: 0;
}

/* Card 2: Call to Action */
.brand-cta {
	background-size: cover;
	background-position: center;
	position: relative;
	color: #fff;
	justify-content: center; /* Centra el contenido verticalmente */
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5); /* Overlay oscuro */
	border-radius: 8px; /* Para que coincida con la card */
}

.brand-cta-content {
	position: relative;
	z-index: 10;
}

.brand-cta h3 {
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0 0 20px 0;
}

/* Re-usa el estilo de botón pero lo hace blanco */
/* CORREGIDO: Clase en inglés */
.brand-cta .btn-secondary {
	color: #fff;
	border-color: #fff;
}

.brand-cta .btn-secondary:hover {
	background: #fff;
	color: #333;
}

/* ------------------------------------------- */
/* --- ESTILOS RESPONSIVE PARA MARCAS --- */
/* ------------------------------------------- */
@media (min-width: 768px) {
	.brand-card {
		flex-direction: row;
		gap: 20px;
	}
}
/* En desktop, 3 columnas */
@media (min-width: 992px) {
	.brands-section .section-title {
		/* Quita el padding de móvil, ya que el contenedor lo maneja */
		padding-left: 0;
	}

	.brands-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	/* En desktop, las cards de marca son horizontales */
	.brand-card:not(.brand-cta) {
		flex-direction: row; /* Lado a lado */
		text-align: left;
		gap: 20px;
		align-items: center;
	}

	.brand-card-logo {
		margin-bottom: 0;
		flex-shrink: 0; /* Evita que el logo se encoja */
	}

	.brand-card-logo img {
		max-height: 50px;
		max-width: 150px; /* Límite para el logo de Carmix */
	}
}

.section-description {
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 0;
}

.section-description p {
	width: auto;
	max-width: 700px;
	color: #303030;
	font-size: 1rem;
	text-align: center;
	padding: 0 40px 20px 40px;
}

/* ------------------------------------------- */
/* --- 15. ESTILOS DEL BANNER CTA (AHORRAR) --- */
/* ------------------------------------------- */

.cta-banner-section {
	/* 1. Sube tu imagen de fondo a /assets/images/ */
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 80px 0;
	color: #fff;
}

/* Overlay oscuro para legibilidad */
.cta-banner-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Un overlay más sutil esta vez */
	background-color: rgba(0, 0, 0, 0.4);
}

/* Contenido sobre el overlay */
.cta-banner-content {
	position: relative;
	z-index: 10;
	padding: 0 1rem;
	display: flex;
	justify-content: center; /* Texto a la izq, botones a la der */
	align-items: center;
	gap: 50px;
}

.cta-banner-text h2 {
	font-size: 2.5rem;
	font-weight: bold;
	margin: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	max-width: 400px; /* Evita que el texto sea muy largo */
	line-height: 1.2;
	text-align: center;
}

.cta-banner-buttons {
	display: flex;
	flex-direction: column; /* Apilados */
	gap: 15px;
	min-width: 250px; /* Ancho mínimo para los botones */
}

/* CORREGIDO: Clase en inglés */
.btn-large {
	padding: 14px 28px;
	font-size: 1rem;
	text-align: center;
	border-radius: 30px; /* Botones redondeados */
	width: auto;
}

/* Botón rojo (re-utilizado de la home) */
.cta-banner-buttons .btn-primary {
	border: 2px solid #e60000;
}

/* Botón blanco (re-utilizado del formulario) */
/* CORREGIDO: Clase en inglés */
.cta-banner-buttons .btn-secondary {
	width: auto;
	color: #fff;
	border-color: #fff;
	cursor: pointer;
}

.cta-banner-buttons .btn-secondary:hover {
	background: #fff;
	color: #333;
}

/* ------------------------------------------- */
/* --- ESTILOS RESPONSIVE PARA EL BANNER CTA --- */
/* ------------------------------------------- */

/* En móvil, apila el contenido */
@media (max-width: 768px) {
	.cta-banner-content {
		flex-direction: column;
		/* Alinea todo a la izquierda */
	}

	.cta-banner-text h2 {
		font-size: 2.2rem;
		text-align: center;
	}

	.cta-banner-buttons {
		margin-top: 30px; /* Espacio entre el texto y el botón */
		width: 100%; /* Botones ocupan todo el ancho */
	}
}
@media (width>=768px) {
	.cta-banner-content {
		flex-direction: row;
	}
}
/* ------------------------------------------- */
/* --- 16. ESTILOS DEL FOOTER --- */
/* ------------------------------------------- */
footer {
	display: flex;
	flex-direction: column;
}
#site-footer {
	color: #fff;
	/* El fondo se define en las sub-secciones */
}

/* --- Footer Principal (Área Superior) --- */
.footer-main {
	background-color: #1f1f1f; /* Gris oscuro */
	padding: 30px 0 15px 0;
	text-align: center; /* Centrado en móvil */
}

.footer-logo {
	margin-bottom: 20px;
}

.footer-logo img {
	height: auto; /* Tamaño del logo en footer */
	width: 150px;
}

.footer-description {
	font-size: 0.8rem;
	color: #aaa;
	line-height: 1.6;
	max-width: 650px; /* Ancho máximo del texto */
	margin: 0 auto 30px auto;
}

/* Menú del Footer */
.footer-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 30px 0;
	display: flex;
	flex-wrap: wrap; /* Permite que pase a la siguiente línea en móvil */
	justify-content: center;
	gap: 15px 25px; /* Espaciado vertical y horizontal */
}

.footer-navigation ul li a {
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
}

.footer-navigation ul li a:hover {
	text-decoration: underline;
}

/* Iconos Sociales */
.footer-social-icons {
	position: fixed;
	right: 2rem;
	bottom: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	z-index: 1000;
}

.footer-social-icons .social-icon {
	display: inline-block;
	width: 56px;
	height: 56px;
	transition: transform 0.2s ease;
	background-color: #28d368;
	box-shadow: -3px -2px 15px -7px rgba(0, 0, 0, 0.51);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%; /* Para los iconos de WhatsApp */
}

.footer-social-icons .social-icon img {
	width: 28px;
	height: auto;
}

.footer-social-icons .social-icon-chat {
	width: 64px;
	height: auto;
	border-radius: 50%; /* Para los iconos de WhatsApp */
	background-color: #e30613;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-social-icons .social-icon-chat img {
	width: 44px;
	height: auto; /* Para los iconos de WhatsApp */
}

.footer-social-icons .social-icon:hover {
	transform: scale(1.1);
}

.footer-social-icons .chat-bubble {
	width: 50px; /* Más grande el botón rojo */
	height: 50px;
}

.footer-social-icons .chat-bubble img {
	width: 40px;
	height: auto;
	border-radius: 0; /* El chat no es redondo */
}

.footer-icons-messagge {
	display: flex;
	gap: 15px;
}

.footer-socials-iconos-principal {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

/* --- Sub-Footer (Área Inferior) --- */
.footer-sub {
	background-color: #1a1a1a; /* Casi negro */
	padding: 20px 0;
	border-top: 1px solid #333;
	font-size: 0.9rem;
	color: #888;
}

.footer-sub .container {
	display: flex;
	flex-direction: column; /* Apilado en móvil */
	align-items: center;
	text-align: center;
	gap: 15px;
}

.footer-sub-center img {
	max-height: 15px; /* Pequeño logo ferreycorp */
	width: auto;
	vertical-align: middle;
}

.footer-sub a {
	color: #fff;
	text-decoration: none;
}

.footer-sub a:hover {
	color: #fff;
}

/* ------------------------------------------- */
/* --- ESTILOS RESPONSIVE PARA EL FOOTER --- */
/* ------------------------------------------- */

@media (min-width: 768px) {
	/* 3 columnas en desktop */
	.footer-sub .container {
		flex-direction: row; /* Lado a lado */
		justify-content: space-between;
	}

	.footer-sub-left {
		color: #fff;
		text-align: left;
	}

	.footer-sub-center {
		color: #fff;
		text-align: center;
	}

	.footer-sub-right {
		color: #fff;
		text-align: right;
	}
}
@media (min-width: 1024px) {
	.slide-3-info p {
		display: block;
	}
	footer {
		display: block;
	}

	.catalog-banner-content {
		gap: 100px;
	}
	.catalog-banner-text h2 {
		text-align: start;
	}
}

/* ------------------------------------------- */
/* --- 17. ESTILOS DEL MODAL DE CONTACTO --- */
/* ------------------------------------------- */

/* Evita que el fondo de la página haga scroll cuando el modal está abierto */
body.modal-open {
	overflow: hidden;
}

.modal-overlay {
	/* Oculto por defecto */
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75); /* Fondo negro semi-transparente */
	z-index: 10000;
	overflow-y: auto; /* Permite scroll si el modal es muy alto */

	/* * ¡EL ERROR ESTABA AQUÍ! 
   * Las propiedades de 'flex' se movieron a .is-active
   */
}

.modal-overlay.is-active {
	/* Se muestra con JS */
	display: flex;
	/* Y aquí van las propiedades de centrado */
	align-items: center;
	justify-content: center;
	padding: 0;
}

.modal-content {
	background: #fff;
	border-radius: 20px;
	width: 400px; /* Ancho máximo del modal */
	width: 100%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	/* Animación de entrada */
	transform: scale(0.95);
	opacity: 0;
	overflow: hidden;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}
@media (min-width: 768px) {
	.modal-content {
		max-width: 765px;
	}
}

.modal-overlay.is-active .modal-content {
	opacity: 1;
	margin: 20px;
}
@media (min-width: 768px) {
	.modal-overlay.is-active .modal-content {
		margin: 20px;
	}
}

.modal-content .form-column {
	box-shadow: none;
	border-radius: 0;
}

/*
 * ==========================================================
 * INICIO: ESTILOS DE MENSAJES DE FORMULARIO
 * ==========================================================
 */

.form-message {
	/* CORREGIDO: Usar tabs para indentación */
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: bold;
	text-align: center;
	display: none; /* Oculto por defecto */
}

/* Estado de Éxito (Verde) */
.form-message.success {
	/* CORREGIDO: Usar tabs para indentación */
	display: block;
	background-color: #e6f7ec;
	color: #008a3d;
	border: 1px solid #b8e6c9;
}

.form-message.error {
	display: block;
	background-color: #fdecea;
	color: #c5161c;
	border: 1px solid #f9c6c5;
}
/* ==========================================================================
   ESTILOS DEL BOTÓN DE FORMULARIO BLOQUEADO
   ========================================================================== */
.form-buttons input.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed !important;
	pointer-events: none; /* Evita cualquier tipo de clic forzado */
	background-color: #666; /* Un color grisáceo opcional para que se vea apagado */
}
