/*
Theme Name: VIP-DB-theme
Theme URI: https://example.com/vip-db-theme
Author: VIP Database
Author URI: https://example.com
Description: A clean and minimal custom WordPress theme for VIP Database project
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vip-db-theme
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ==========================================================================
   1. REGISTRO DE LA FUENTE LOCAL (Artifakt)
   ========================================================================== */
@font-face {
    font-family: 'Artifakt Element';
    src: url('Artifakt-Element-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Artifakt Element';
    src: url('Artifakt-Element-Medium.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. APLICACIÓN GLOBAL A TODOS LOS TEXTOS (MONOCROMO & TEXTOS DELGADOS)
   ========================================================================== */
body {
    font-family: 'Artifakt Element', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    /* Suavizado avanzado de píxeles: hace que la tipografía Medium se perciba fina y estilizada */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bold-text {
    font-weight: 700;
}

/* Forzamos a que cualquier elemento de texto use la tipografía del cliente */
h1, h2, h3, h4, h5, h6, p, a, span, input, textarea, label, button, li {
    font-family: 'Artifakt Element', sans-serif !important;
}

/* Ajuste para la Página de Inicio (Home) */
body.home {
    overflow-x: hidden;
}

body.home .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

/* Ocultamos el footer visualmente solo en la Home, pero se sigue
   cargando (necesario para el script del menú móvil y wp_footer()) */
body.home .site-footer {
    display: none;
}

/* ===================================
   RESET AND BASE STYLES
   =================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html, body {
	height: 100%;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

a {
	color: #000;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

a:hover {
	opacity: 0.7;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	margin-bottom: 0.5em;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
	font-weight: 200;
	text-transform: uppercase;
	letter-spacing: 1px;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1em;
}

/* ===================================
   HEADER STYLES (LOGOTIPO GRANDE Y MENÚ HORIZONTAL A LA DERECHA)
   =================================== */
.site-header {
	background-color: #fff;
	border-bottom: 1px solid #e5e5e5;
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	transition: all 0.3s ease;
}

#site-navigation,
.main-navigation {
	position: relative;
	z-index: 100000;
}

.site-header.scrolled {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-branding {
	padding: 1rem 0;
}

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

.site-logo {
	display: flex;
	align-items: center;
}

.site-logo img {
	height: 65px; /* Tamaño un poco más grande solicitado en PDF */
	width: auto;
	display: block;
}

.site-logo a {
	display: flex;
	align-items: center;
	color: inherit;
}

.site-logo a:hover {
	opacity: 0.8;
}

/* Main Navigation */
.main-navigation {
	display: flex;
	align-items: center;
	margin-left: auto; /* Alineación limpia del menú a la derecha */
}

#primary-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0;
}

#primary-menu > li {
	position: relative;
}

#primary-menu > li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	color: #000;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 1px;
	transition: background-color 0.3s ease;
	height: 48px;
}

#primary-menu > li > a:hover {
	background-color: #f5f5f5;
}

#primary-menu > li > a.current {
	border-bottom: 3px solid #000;
}

/* Dropdown Menus */
#primary-menu ul {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #fff;
	min-width: 200px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	margin-top: 0;
}

#primary-menu > li:hover > ul {
	opacity: 1;
	visibility: visible;
	margin-top: 0.5rem;
}

#primary-menu ul li a {
	display: block;
	padding: 0.75rem 1.5rem;
	color: #000;
	transition: background-color 0.3s ease;
}

#primary-menu ul li a:hover {
	background-color: #f5f5f5;
}

/* Social Icons (Header Right) */
.header-social {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-left: 0;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #f5f5f5;
	color: #000;
	transition: background-color 0.3s ease;
}

.social-icon:hover {
	background-color: #000;
	color: #fff;
}

.social-icon svg {
	width: 20px;
	height: 20px;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.5rem;
	color: #000;
	padding: 0.5rem;
}

/* ===================================
   FOOTER STYLES (CUBRIMIENTO GRIS CLARO - PÁGINA 27 PDF)
   =================================== */
.site-footer {
	background-color: #f9f9f9; /* Reemplazado marrón por el gris claro del PDF */
	color: #000;
	padding-top: 3rem;
	margin-top: auto;
	border-top: 1px solid #e5e5e5;
}

.footer-top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem;
	padding: 2rem 0;
	border-bottom: 1px solid #e5e5e5;
}

.footer-branding {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer-logo {
	display: flex;
	align-items: center;
}

.footer-logo img {
	height: 55px; /* Logotipo un poco más grande solicitado */
	width: auto;
}

.footer-tagline {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.5;
}

.footer-column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer-column h3 {
	font-size: 0.95rem;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	letter-spacing: 1px;
	color: #000;
	font-weight: 600;
}

.footer-column ul {
	list-style: none;
}

.footer-column ul li {
	margin-bottom: 0.5rem;
}

.footer-column a {
	color: #555;
	transition: color 0.3s ease;
}

.footer-column a:hover {
	color: #000;
	text-decoration: underline;
}

.contact-info {
	margin-top: 0.5rem;
}

.contact-info p {
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 0.5rem;
	line-height: 1.5;
}

.contact-info strong {
	display: block;
	color: #000;
	margin-bottom: 0.25rem;
}

/* Footer Social Icons */
.footer-social {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.05);
	color: #000;
	transition: background-color 0.3s ease;
}

.footer-social a:hover {
	background-color: #000;
	color: #fff;
}

.footer-social svg {
	width: 20px;
	height: 20px;
}

/* Footer Bottom */
.footer-bottom {
	background-color: #f0f0f0;
	padding: 1.5rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-credit {
	font-size: 0.9rem;
	color: #555;
}

.site-credit a {
	color: #000;
}

.footer-legal {
	display: flex;
	gap: 1.5rem;
}

.footer-legal a {
	font-size: 0.9rem;
	color: #555;
}

.footer-legal a:hover {
	color: #000;
}

/* ===================================
   HOMEPAGE SECTIONS
   =================================== */

/* Utility Classes */
.section-padding {
	padding: 4rem 0;
}

.section-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: #000;
}

/* Home Pantalla Completa Estática (Landing Hero - Pág 2 PDF) */
.home-fullscreen-hero {
	height: 100vh;
	width: 100%;
	background-size: cover;
	background-position: center;
	position: relative;
}

.hero-overlay-dark {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: rgba(0, 0, 0, 0.3); /* Opacidad sutil */
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-static-content {
	text-align: center;
}

.hero-brand-title {
	color: #fff !important;
	font-size: 3.5rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 3px;
	line-height: 1.2;
}

/* Hero Section Antigua */
.hero-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	position: relative;
}

@media (max-width: 768px) {
	.hero-section {
		background-attachment: scroll;
		min-height: 70vh;
	}
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-content {
	text-align: center;
	color: #fff;
	z-index: 2;
	max-width: 700px;
	padding: 2rem;
}

.hero-headline {
	font-size: 3.5rem;
	font-weight: 300;
	line-height: 1.3;
	margin-bottom: 1.5rem;
	letter-spacing: -1px;
}

.hero-subheadline {
	font-size: 1.25rem;
	font-weight: 300;
	margin-bottom: 2.5rem;
	opacity: 0.95;
	line-height: 1.6;
}

/* Studio Section */
.studio-section {
	background-color: #fff;
}

.studio-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: flex-start;
}

.studio-content h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	line-height: 1.3;
	color: #000;
	font-weight: 400;
}

.studio-content p {
	font-size: 1rem;
	line-height: 1.8;
	color: #333;
	margin-bottom: 1.5rem;
}

.testimonials {
	display: grid;
	gap: 2rem;
}

.testimonial {
	border-left: 4px solid #000; /* Reemplazado color beige/dorado */
	padding-left: 1.5rem;
	background-color: #f9f9f9;
	padding: 1.5rem;
	border-radius: 4px;
}

.testimonial-text {
	font-size: 0.95rem;
	font-style: italic;
	color: #333;
	margin-bottom: 1rem;
	line-height: 1.6;
}

.testimonial-author {
	font-size: 0.85rem;
	color: #666;
	font-weight: 600;
}

/* Process Section */
.process-section h2 {
	margin-bottom: 3rem;
}

.process-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.process-column {
	background-color: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.process-column h3 {
	font-size: 1.35rem;
	margin-bottom: 2rem;
	color: #000;
	text-align: center;
}

.process-flow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.process-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem;
	background-color: #f5f5f5;
	border-radius: 6px;
	min-width: 150px;
	text-align: center;
}

.process-step.client,
.process-step.handover {
	background-color: #000; /* Monocromo limpio */
	color: #fff;
	font-weight: 600;
	min-width: 180px;
}

.process-icon {
	font-size: 2rem;
}

.process-arrow {
	font-size: 1.5rem;
	color: #999;
	margin: 0.5rem 0;
}

.process-arrow-vertical {
	font-size: 1.5rem;
	color: #999;
	margin: 0.5rem 0;
}

.vip-process .process-step p {
	margin: 0;
	font-weight: 600;
}

.process-footer-text {
	text-align: center;
	margin-top: 2rem;
	color: #666;
	font-style: italic;
}

/* Services Section (Expertise Grid) */
.services-section {
	background-color: #fff;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2rem;
}

.service-card {
	background-color: #f9f9f9;
	padding: 2rem;
	border-radius: 8px;
	border-top: 4px solid #000; /* Monocromo */
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.service-card:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.service-phase {
	font-size: 2.5rem;
	font-weight: 300;
	color: #999;
	letter-spacing: 2px;
}

.service-card h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	color: #000;
	font-weight: 600;
}

.service-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.service-list li {
	font-size: 0.9rem;
	color: #333;
	line-height: 1.5;
	padding-left: 1rem;
	position: relative;
}

.service-list li:before {
	content: "•";
	position: absolute;
	left: 0;
	color: #000;
}

/* ==========================================================================
   6. WORK / PORTFOLIO STYLES (MOSAICO DE PROYECTOS INTEGRADO)
   ========================================================================== */
.portfolio-section {
	background-color: #f9f9f9;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.portfolio-item {
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
	width: 100%;
	height: 280px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
}

.portfolio-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.portfolio-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(6px);
	padding: 1rem 1.25rem;
	transform: translateY(100%);
	transition: transform 0.25s ease;
}

/* Sin subtítulos descriptivos en imágenes individuales según pág 12 */
.portfolio-overlay-subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: #000;
}

.overlay-action {
	display: inline-block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #666;
}

.portfolio-image:hover .portfolio-overlay,
.portfolio-image:focus-within .portfolio-overlay {
	transform: translateY(0);
}

.portfolio-item:hover .portfolio-image img,
.project-banner-image:hover img,
.project-gallery-item:hover img {
	transform: scale(1.05);
}

.project-banner-image,
.project-gallery-item {
	position: relative;
	cursor: pointer;
	overflow: hidden;
}

.project-banner-image img,
.project-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.project-banner-image .portfolio-overlay,
.project-gallery-item .portfolio-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(6px);
	padding: 1rem 1.25rem;
	transform: translateY(100%);
	transition: transform 0.25s ease;
}

.project-banner-image:hover .portfolio-overlay,
.project-gallery-item:hover .portfolio-overlay {
	transform: translateY(0);
}

.portfolio-info {
	padding: 1.5rem;
}

.portfolio-info h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	color: #000;
	font-weight: 600;
}

.portfolio-info p {
	font-size: 0.9rem;
	color: #666;
	margin: 0;
}

.portfolio-note {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.85rem;
	color: #999;
	font-style: italic;
}

.project-card-link {
	display: block;
	color: inherit;
}

.project-link {
	display: inline-block;
	margin-top: 1rem;
	color: #000;
	font-weight: 600;
	text-decoration: underline;
}

/* Lightbox de Proyectos */
.lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	z-index: 9999;
}

.lightbox-overlay.open {
	display: flex;
}

.lightbox-inner {
	position: relative;
	max-width: 1100px;
	width: 100%;
	max-height: 90vh;
}

.lightbox-close {
	position: absolute;
	top: -1rem;
	right: -1rem;
	background: #fff;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 1.5rem;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.lightbox-inner img {
	width: 100%;
	height: auto;
	max-height: 80vh;
	border-radius: 16px;
	object-fit: contain;
	display: block;
}

.lightbox-caption {
	margin-top: 1rem;
	color: #fff;
	font-size: 0.95rem;
	text-align: center;
}

.projects-hero {
	background-color: #fff;
}

.projects-hero .container {
	max-width: 1140px;
}

.eyebrow-label {
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.75rem;
	color: #999;
	margin-bottom: 1rem;
}

.project-section {
	padding: 5rem 0;
	border-bottom: 1px solid #e6e6e6;
}

.project-section:last-of-type {
	border-bottom: none;
}

.project-header {
	max-width: 700px;
	margin-bottom: 2rem;
}

.project-label {
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.75rem;
	color: #999;
	margin-bottom: 0.75rem;
}

.project-banner {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 2rem;
	align-items: center;
}

.project-banner-image {
	border-radius: 16px;
}

.project-info-label {
	font-weight: 600;
	margin-bottom: 1rem;
	color: #000;
}

.project-list {
	list-style: none;
	display: grid;
	gap: 0.75rem;
	color: #333;
}

.project-list li:before {
	content: "•";
	position: absolute;
	left: 0;
	color: #000;
}

.project-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.project-gallery-item {
	border-radius: 16px;
	height: 240px;
	background-color: #f3f3f3;
}

.project-alt {
	background-color: #f5f5f5; /* Fondos grises claros del PDF */
}

/* Carrusel de Clientes (Track) */
.clients-section {
	background-color: #fff;
}

.carousel-track {
	display: flex;
	width: calc(180px * 16);
	animation: scroll-left 30s linear infinite;
}

.client-logo {
	flex: 0 0 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100px;
	margin: 0 1rem;
	background-color: #f5f5f5;
	border-radius: 8px;
	padding: 0.75rem;
}

.client-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.5;
	transition: opacity 0.3s ease;
}

.client-logo:hover img {
	opacity: 1;
}

@keyframes scroll-left {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ==========================================================================
   7. CONTACT PAGE STYLES (GRIS CLARO / TRANSPARENTE - PÁGINA 24 PDF)
   ========================================================================== */
.contact-hero {
	background: #f5f5f5 !important; /* Eliminado degradado marrón corporativo viejo */
	color: #000 !important;
	padding: 3rem 0;
	text-align: center;
}

.contact-hero h1 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	color: #000;
}

.contact-hero p {
	font-size: 1.1rem;
	opacity: 0.9;
}

.contact-section {
	background-color: #fff;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

.contact-form-wrapper {
	padding-right: 2rem;
}

.contact-form-wrapper h2 {
	font-size: 1.75rem;
	margin-bottom: 2rem;
	color: #000;
}

.contact-form-wrapper .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form select,
.contact-form-wrapper .wpcf7-form textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #dcdcdc;
	background-color: #fafafa; /* Fondo gris claro consistente */
	border-radius: 4px;
	font-size: 0.95rem;
}

.contact-form-wrapper .wpcf7-form textarea {
	min-height: 150px;
}

.contact-form-wrapper .wpcf7-form .wpcf7-submit, .cta-button {
    background-color: #000000 !important; /* Fondo Negro */
    color: #ffffff !important; /* Letras Blancas */
    border: 1px solid #000000;
    border-radius: 0px; 
    padding: 1rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-wrapper .wpcf7-form .wpcf7-submit:hover, .cta-button:hover {
    background-color: #333333 !important; /* Gris oscuro al pasar el mouse */
}

.contact-form-wrapper .wpcf7-response-output {
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	border-radius: 4px;
}

.contact-item {
	margin-bottom: 2.5rem;
}

.contact-item h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #000;
	margin-bottom: 0.75rem;
}

.contact-item p {
	font-size: 0.95rem;
	color: #333;
}

.contact-item a {
	color: #000;
	font-weight: 600;
	text-decoration: underline;
}

.contact-social {
	display: flex;
	gap: 1rem;
}

.social-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	background-color: #f5f5f5;
	color: #000;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 500;
}

.social-link:hover {
	background-color: #000;
	color: #fff;
}

/* Forzar que el iframe del mapa embebido no colapse en alto */
.maps-section, .maps-section iframe {
	width: 100% !important;
	height: 500px !important;
	display: block !important;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (TABLÉTS Y MÓVILES)
   ========================================================================== */
@media (max-width: 1024px) {
	.project-banner { grid-template-columns: 1fr; }
	.project-gallery { grid-template-columns: 1fr 1fr; }
	.services-grid { grid-template-columns: repeat(3, 1fr); }
	.client-logo { flex: 0 0 170px; height: 95px; }
}

@media (max-width: 768px) {
	.main-navigation {
		position: relative;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		z-index: 100000;
	}
	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		border: 1px solid #000;
		border-radius: 8px;
		background-color: #fff;
		color: #000;
		padding: 0;
		margin-top: 1rem;
		position: relative;
		z-index: 100002;
		font-size: 1.4rem;
		line-height: 1;
		transition: background-color 0.2s ease, transform 0.2s ease;
	}
	.menu-toggle:hover {
		background-color: #f5f5f5;
	}
	.menu-toggle:active {
		transform: scale(0.95);
	}
	/* Bloquea el scroll del fondo mientras el menú está abierto */
	body.menu-open {
		overflow: hidden;
	}
	/* IMPORTANTE: usamos top/left/width/height explícitos (con vw/vh) en vez
	   de "inset: 0". Como .site-header es position:sticky, en Safari/iOS ese
	   ancestro puede actuar como "containing block" del menú fixed y encoger
	   el overlay a la altura del header. Fijando el tamaño con unidades de
	   viewport nos aseguramos de que siempre cubra toda la pantalla. */
	#primary-menu {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		display: none;
		gap: 0;
		background-color: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		border: none;
		border-radius: 0;
		box-shadow: none;
		padding: 6rem 1.5rem 3rem;
		overflow-y: auto;
		z-index: 100000;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-16px);
		transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
	}
	#primary-menu.active {
		display: flex !important;
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
	}
	#primary-menu > li {
		width: 100%;
		text-align: center;
	}
	#primary-menu > li > a {
		display: block;
		width: 100%;
		padding: 1.35rem 1.25rem;
		font-size: 1.5rem;
		letter-spacing: 2px;
		border-bottom: 1px solid #eee;
		transition: background-color 0.2s ease, opacity 0.2s ease;
	}
	#primary-menu > li:last-child > a {
		border-bottom: none;
	}
	#primary-menu > li > a:hover,
	#primary-menu > li > a:active {
		background-color: #f7f7f7;
		opacity: 1;
	}
	#primary-menu ul {
		position: relative;
		top: auto;
		left: auto;
		background-color: transparent;
		box-shadow: none;
		border: none;
		width: 100%;
	}
	#primary-menu ul li a {
		font-size: 1.1rem;
		padding-left: 2rem;
	}
	.footer-top { grid-template-columns: 1fr 1fr; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.client-logo { flex: 0 0 160px; height: 90px; }
}

@media (max-width: 480px) {
	.site-branding .container { flex-direction: column; align-items: flex-start; }
	h1 { font-size: 1.75rem; }
	h2 { font-size: 1.1rem; }
	.footer-top { grid-template-columns: 1fr; }
	.studio-grid, .contact-grid, .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
	.client-logo { flex: 0 0 140px; height: 80px; }
	.maps-section { height: 350px; }
}

/* ==========================================================================
   10. FIX DEFINITIVO: GRID Y IMÁGENES DE LA PÁGINA WORK
   ========================================================================== */

/* Contenedor principal de la sección Work */
.projects-hero {
    background-color: #fff;
    padding: 4rem 0 2rem 0;
}

/* Grilla de imágenes en la vista de proyectos interna */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 2rem;
    width: 100%;
}

/* Forzar que cada caja de la galería mantenga su estructura rectangular limpia */
.project-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 280px !important; /* Altura fija para que no se deformen */
    width: 100%;
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Imagen principal destacada del banner del proyecto */
.project-banner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.project-banner-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 450px !important; /* Altura fija para el banner principal */
    width: 100%;
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Ajuste matemático para que las imágenes NO se estiren ni se deformen */
.project-banner-image img,
.project-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Mantiene la proporción recortando los bordes excedentes */
    object-position: center !important; /* Centra la foto en la caja */
    display: block !important;
    transition: transform 0.4s ease;
}

/* Efecto de zoom elegante y minimalista al pasar el mouse */
.project-banner-image:hover img,
.project-gallery-item:hover img {
    transform: scale(1.03);
}

/* Capa de overlay limpia para la acción de "View Large" en el Lightbox */
.project-banner-image .portfolio-overlay,
.project-gallery-item .portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-banner-image:hover .portfolio-overlay,
.project-gallery-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Ocultar cualquier texto descriptivo viejo abajo de las fotos como pidió el cliente */
.portfolio-overlay-subtitle {
    display: none !important;
}

.overlay-action {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    font-weight: 500;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

/* Ajustes adaptativos para tablets y celulares */
@media (max-width: 991px) {
    .project-banner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .project-banner-image {
        height: 350px !important;
    }
    .project-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .project-gallery {
        grid-template-columns: 1fr !important;
    }
    .project-banner-image {
        height: 250px !important;
    }
    .project-gallery-item {
        height: 220px !important;
    }
}
/* ==========================================================================
   11. CAROUSEL DE MARCAS EN ABOUT (RECTÁNGULOS IDENTICOS CON HOVER A COLOR)
   ========================================================================== */
.about-clients-carousel {
    overflow: hidden;
    padding: 2rem 0;
    width: 100%;
}

.about-client-logo {
    flex: 0 0 160px; /* Ancho fijo para cada recuadro */
    width: 160px;
    height: 100px;    /* Alto fijo para hacerlos todos idénticos */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #cacaca; /* Gris medio de fondo para los rectángulos en reposo */
    border: 0px solid #b5b5b5;  /* Borde sutil */
    border-radius: 6px;        /* Bordes suavemente redondeados como tu imagen */
    margin: 0 0.75rem;          /* Separación entre los rectángulos */
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

.about-client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* En reposo: la imagen está completamente en escala de grises y fusionada con el fondo */
    filter: grayscale(100%) contrast(90%);
    opacity: 0.5;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

/* ==========================================================================
   EFECTO HOVER: RECUADRO BLANCO CON LOGO A TODO COLOR
   ========================================================================== */
.about-client-logo:hover {
    background-color: #ffffff !important; /* El fondo pasa a blanco inmaculado */
    border-color: #dcdcdc;                 /* El borde se aclara */
    transform: translateY(-2px);           /* Pequeño levante sutil de profundidad */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); /* Sombra suave de apoyo */
}

.about-client-logo:hover img {
    filter: grayscale(0%) contrast(100%);  /* Se apaga el gris y se encienden los colores reales */
    opacity: 1;                            /* Opacidad total para ver el logo nítido */
}

/* Ajuste matemático de velocidad de scroll continuo */
@keyframes about-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Desplazamiento exacto sumando anchos y márgenes */
        transform: translateX(calc(-184px * 9)); 
    }
}