/* =========================
	Tema base y variables globales
	========================= */
:root {
	--page-bg: #0A192F;
	--surface: #0F2140;
	--card-front: #162B45;
	--header-height: 64px;
	--primary: #00A2FF;
	--primary-2: #2D6CDF;
	--accent: #B3D7FF;
	--muted: #B3D7FF;

	--contact-bg: rgba(255, 255, 255, 0.02);
	--on-contact: var(--text-color);
	--text-color: #ffffff;
	--text-muted: rgba(255, 255, 255, 0.92);
	--section-text: var(--text-color);
	--footer-text: #ffffff;

	--card-bg: rgba(255, 255, 255, 0.03);
	--card-border: rgba(255, 255, 255, 0.06);
	--card-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);

	--tone-1-start: #0F2140;
	--tone-1-end: #071528;
	--tone-2-start: #071A33;
	--tone-2-end: #06202f;
	--tone-3-start: #0E2A4A;
	--tone-3-end: #072033;

	--font-heading: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	--font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Theme: light overrides */
.theme-light {
	--page-bg: #F6F9FF;
	--surface: #FFFFFF;
	--card-front: #F1F7FF;
	--primary: #0B6CFF;
	--primary-2: #0A58D3;
	--accent: #0B6CFF;
	--muted: #24405A;
	--contact-bg: #F1F8FF;
	--on-contact: #0A192F;
	--text-color: #0A192F;
	--text-muted: rgba(10, 25, 47, 0.9);
	--footer-text: #0A192F;

	--card-bg: #FFFFFF;
	--card-border: rgba(10, 25, 47, 0.06);
	--card-shadow: 0 6px 20px rgba(10, 25, 47, 0.06);
}

/* =========================
	Base / reset
	========================= */
* {
	box-sizing: border-box
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	font-family: var(--font-body);
	background: linear-gradient(180deg, var(--page-bg) 0%, #071226 100%);
	color: var(--text-color);
	margin: 0;
}

/* =========================
	Tipografía
	========================= */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title {
	font-family: var(--font-heading);
}

h1,
h2,
h3 {
	letter-spacing: -0.01em
}

/* Heading prefix '>' */
h1::before,
h2::before,
h3::before {
	content: "> ";
	color: var(--primary);
	margin-right: .4rem;
	font-weight: 700;
	opacity: .95;
}

/* Encabezados ocultos para accesibilidad */
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* =========================
	Layout base
	========================= */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem
}

/* Sections */
.site-section {
	background: var(--surface);
	color: var(--section-text);
}

.site-section.alt {
	background: transparent;
	color: var(--section-text);
	position: relative;
}

/* Ensure headings inside sections use section-text for contrast */
.site-section h1,
.site-section h2,
.site-section h3 {
	color: var(--section-text)
}

/* Accent bar on top of a section for subtle separation */
.site-section.has-accent {
	position: relative;
	overflow: visible
}

.site-section.has-accent::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: -6px;
	width: 60%;
	height: 6px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--primary), var(--primary-2));
	box-shadow: 0 6px 18px rgba(0, 162, 255, 0.12);
}

/* Alternate subtle divider line */
/* Section tone variants */
.section-tone-1 {
	background: linear-gradient(180deg, var(--tone-1-start), var(--tone-1-end))
}

.section-tone-2 {
	background: linear-gradient(180deg, var(--tone-2-start), var(--tone-2-end))
}

/* Light theme overrides for section-tone backgrounds & cards to keep contrast */
.theme-light .section-tone-1 {
	background: linear-gradient(180deg, #EAF3FF, #EDF6FF)
}

.theme-light .section-tone-2 {
	background: linear-gradient(180deg, #F3F8FF, #EEF6FF)
}

/* =========================
	Header / navegación
	========================= */
.site-header {
	background: rgba(2, 6, 23, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px)
}

.site-header a.logo {
	font-weight: 800;
	color: #fff;
}

.nav-link {
	color: #ffffff;
	text-decoration: none;
	opacity: .93;
	display: inline-flex;
	align-items: center;
	padding: .45rem 0;
}

.nav-link:hover {
	color: var(--primary);
	text-decoration: none
}

/* Theme toggle icons visibility (inline SVGs) */
.icon-moon,
.icon-sun {
	vertical-align: middle;
	color: #fff
}

.icon-moon {
	display: inline-block;
}

.icon-sun {
	display: none;
}

.theme-light .icon-moon {
	display: none
}

.theme-light .icon-sun {
	display: inline-block
}

/* Theme toggle button small */
.theme-toggle {
	padding: .35rem .6rem;
	border-radius: .45rem;
	font-size: .9rem
}

/* =========================
	Botones
	========================= */
.btn {
	display: inline-block;
	padding: .65rem 1.25rem;
	border-radius: .6rem;
	font-weight: 700;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, filter .18s ease
}

.btn-primary {
	background: var(--primary-2);
	color: #fff;
	border-color: transparent
}

.btn-outline {
	background: transparent;
	color: var(--primary);
	border-color: var(--primary)
}

.btn-outline:hover {
	background: rgba(0, 162, 255, 0.12);
}

.theme-light .btn-outline:hover {
	background: rgba(11, 108, 255, 0.10);
}

nav div .btn-outline {
	border-color: var(--surface);
	color: #fff;
}

nav div .btn-outline:hover {
	border-color: var(--primary);
	color: #fff;
}

.btn:focus {
	outline: 3px solid rgba(0, 162, 255, 0.18);
	outline-offset: 2px
}

.btn:hover {
	transform: translateY(-2px);
}

/* =========================
	Hero / micro-animaciones
	========================= */
.hero-title {
	font-size: clamp(2.5rem, 6vw, 4rem);
	text-shadow: 0 6px 20px rgba(2, 6, 23, 0.45);
}

.typing-effect {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.92);
	animation: typing 3.5s steps(40, end) 1s forwards, blink-caret .75s step-end infinite
}

.theme-light .typing-effect {
	color: var(--text-muted);
}

.btn-primary {
	transition: transform .16s ease, box-shadow .16s ease;
}

.btn-primary:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
	filter: brightness(1.05);
}

/* Soft gradient underline for the section headings */
.site-section h2 {
	position: relative;
}

.site-section h2::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -30px;
	width: 90px;
	height: 6px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--primary), var(--primary-2));
	opacity: 0.95;
}

/* Tamaño aumentado para título y descripción dinámicos del hero */
#hero-action-title {
	font-size: clamp(2rem, 5.5vw, 3.5rem);
	line-height: 1.05;
}

#hero-action-desc {
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	line-height: 1.6;
	color: var(--text-muted);
	max-width: 46rem;
}

/* Estilos para la nueva sección 'Qué hacemos' en el hero */
/* =========================
	Cards (flip)
	========================= */
.card-container {
	perspective: 1000px
}

.card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform .7s;
	transform-style: preserve-3d
}

.card-container:hover .card-inner {
	transform: rotateY(180deg)
}

.card-front,
.card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: .6rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem
}

.card-front {
	background: var(--card-front);
	color: #fff;
	transition: transform .2s
}

.card-front i {
	opacity: .95
}

.card-front:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 30px rgba(2, 6, 23, 0.45)
}

.card-back {
	transform: rotateY(180deg);
	color: #fff
}

.card-back.accent-1 {
	background: var(--primary)
}

.card-back.accent-2 {
	background: var(--primary-2)
}

.icon-primary {
	color: var(--primary)
}

.icon-secondary {
	color: var(--accent)
}

.theme-light .card-front {
	background: linear-gradient(180deg, #ffffff, #f6fbff);
	box-shadow: 0 6px 18px rgba(10, 20, 30, 0.04);
	color: var(--text-color)
}

.theme-light .card-back.accent-1 {
	background: var(--primary)
}

.theme-light .card-back.accent-2 {
	background: var(--primary-2)
}

/* =========================
	Sección: Estadísticas (#estadisticas)
	========================= */
#estadisticas .hero-stats-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	/* reducir separación vertical excesiva */
	padding: clamp(1.5rem, 4vw, 3rem) 0;
}

#estadisticas .stat-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	gap: 1rem;
	width: 100%;
}

#estadisticas .stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-width: 140px;
}

#estadisticas .stat-number {
	font-size: 3rem;
	line-height: 1;
	font-weight: 900;
	color: var(--primary);
	margin-top: .25rem;
}

#estadisticas .stat-label {
	font-size: 1.25rem;
	color: var(--text-muted);
	opacity: .98;
	margin-bottom: .5rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Suavizar fondo de la sección de estadísticas en modo claro */
.theme-light #estadisticas {
	background: #f5f6f8;
}

.theme-light #estadisticas .hero-stats-bar {
	background: linear-gradient(180deg, rgba(10, 25, 47, 0.03), rgba(10, 25, 47, 0.01));
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(10, 25, 47, 0.04);
}

/* =========================
	Sección: Contacto (#contacto)
	========================= */
.contact-section {
	background: var(--contact-bg);
	color: var(--on-contact)
}

/* Contact card */
.contact-card {
	max-width: 820px;
	margin: 0 auto;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	box-shadow: var(--card-shadow);
	padding: 2rem;
	border-radius: .75rem;
}

.contact-card input,
.contact-card textarea {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: .75rem;
	border-radius: .45rem;
	color: var(--section-text)
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.contact-card .btn-primary {
	width: 100%
}

/* Form inputs */
input[type=text],
input[type=email],
textarea {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: transparent;
	padding: .75rem;
	border-radius: .45rem;
	color: inherit
}

/* Mejoras para formularios en tema claro */
.theme-light .contact-card input,
.theme-light .contact-card textarea {
	border: 1px solid rgba(10, 25, 47, 0.30);
	color: var(--text-color)
}

.theme-light .contact-card input::placeholder,
.theme-light .contact-card textarea::placeholder {
	color: rgba(10, 25, 47, 0.5);
}

.theme-light input::placeholder,
.theme-light textarea::placeholder,
.theme-light select::placeholder {
	color: rgba(10, 25, 47, 0.55);
}

.theme-light input[type=text],
.theme-light input[type=email],
.theme-light input[type=password],
.theme-light textarea,
.theme-light select {
	border: 1px solid rgba(10, 25, 47, 0.30);
	background: #FFFFFF;
	color: var(--text-color);
	box-shadow: none;
}

.theme-light input:focus,
.theme-light textarea:focus,
.theme-light select:focus {
	outline: none;
	border-color: var(--primary-2);
	box-shadow: 0 0 0 4px rgba(11, 108, 255, 0.12);
}

/* =========================
	Menú móvil
	========================= */
.mobile-menu {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--header-height);
	background: var(--surface);
	border-bottom: 1px solid var(--card-border);
	box-shadow: 0 8px 30px rgba(2, 6, 23, 0.12);
	padding: 0.75rem 1rem;
	z-index: 1000;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	text-align: center;

	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-6px);
	transition: max-height 300ms cubic-bezier(.2, .9, .2, 1), opacity 220ms ease, transform 240ms ease;
}

.mobile-menu.open {
	max-height: 80vh;
	opacity: 1;
	transform: translateY(0);
}

.mobile-menu a.nav-link,
.mobile-menu .btn {
	color: var(--text-color);
	text-decoration: none;
}

.mobile-menu a.nav-link {
	display: inline-block;
}

.mobile-menu .nav-link {
	padding: .5rem 0;
	border-radius: .35rem;
	width: 100%;
	text-align: center;
}

.mobile-menu .btn-primary {
	margin-top: .5rem;
	display: inline-block;
	width: auto;
}

.theme-light .mobile-menu {
	background: var(--surface);
	border-bottom-color: rgba(10, 25, 47, 0.06);
}

#mobile-menu-button {
	background: transparent;
	border: 1px solid transparent;
	color: var(--text-color);
}

#mobile-menu-button:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(11, 108, 255, 0.12);
	border-radius: .35rem;
}

/* =========================
	Footer
	========================= */
.site-footer {
	background: rgba(255, 255, 255, 0.02);
	color: var(--footer-text);
	font-weight: 600;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.theme-light .site-footer {
	--footer-text: #c3d1e6;
	background: rgba(10, 25, 47, 0.04);
	color: var(--footer-text);
}

.site-footer a {
	color: var(--footer-text);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--primary);
	text-decoration: none;
}

.footer-social {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	margin-left: .75rem;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: .5rem;
	border: 0;
	background: transparent;
	color: var(--footer-text);
	text-decoration: none;
}

.footer-social-link:hover {
	color: var(--footer-text);
	opacity: 0.85;
	text-decoration: none;
}

.footer-social-link:focus-visible {
	outline: 2px solid var(--primary-2);
	outline-offset: 3px;
}

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

.footer-social-link i {
	font-size: 18px;
	line-height: 1;
}

/* =========================
	Sección: Inicio (#inicio)
	========================= */
#inicio .hero-layout {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

#inicio .hero-row {
	width: 100%;
}

#inicio .hero-row-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5rem;
}

#inicio .hero-title-col {
	flex: 1 1 320px;
	min-width: 260px;
}

#inicio .hero-what-col {
	flex: 1 1 320px;
	min-width: 260px;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

#inicio .hero-what-col p {
	margin: 0;
}

#inicio .hero-row-stats {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#inicio .hero-stats-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem 0;
}

#inicio .stat-list {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 100%;
	justify-content: space-around;
	gap: 1rem;
}

#inicio .stat-item {
	flex: 0 1 auto;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .25rem;
}

#inicio .stat-number {
	font-size: 2.25rem;
	line-height: 1;
}

#inicio .stat-label {
	font-size: .95rem;
	color: var(--text-muted);
}

#inicio .hero-row-projects {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#inicio .project-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

#inicio .project-card {
	flex: 1 1 250px;
	min-width: 250px;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: .9rem;
	padding: 1.25rem;
	box-shadow: var(--card-shadow);
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

#inicio .project-preview {
	background: rgba(255, 255, 255, 0.06);
	border: 1px dashed rgba(255, 255, 255, 0.14);
	border-radius: .7rem;
	padding: 1.25rem;
	/* Mantener uniformidad entre cards aunque el texto de arriba varíe */
	margin-top: auto;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 72px;
	color: var(--text-muted);
}

.theme-light #inicio .project-preview {
	background: rgba(10, 25, 47, 0.04);
	border-color: rgba(10, 25, 47, 0.18);
	color: rgba(10, 25, 47, 0.78);
}

#inicio .project-preview:hover {
	border-color: var(--primary);
}

/* =========================
	Sección: Planes y Precios
	========================= */
.pricing-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pricing-card {
	position: relative;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	box-shadow: var(--card-shadow);
	padding: 1.5rem;
	border-radius: .75rem;
	color: var(--section-text);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 250px;
}

.pricing-card.recommended {
	border-color: var(--primary);
	box-shadow: 0 10px 30px rgba(11, 108, 255, 0.12);
	transform: translateY(-6px);
}

.recommended-badge {
	position: absolute;
	right: 12px;
	top: 12px;
	background: linear-gradient(90deg, var(--primary), var(--primary-2));
	color: #fff;
	padding: .35rem .6rem;
	border-radius: 999px;
	font-weight: 800;
	font-size: .75rem;
	letter-spacing: .02em;
}

.pricing-card h3 {
	margin: 0;
}

.pricing-card .price {
	color: var(--primary);
}

.pricing-card ul {
	margin: 0;
	padding-left: 1rem;
}

.pricing-card .btn {
	align-self: start;
}

/* Services section: use the same responsive grid behaviour so cards form 2x2 or 1x1 */
#servicios .grid {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.25rem;
}

/* =========================
	Modal (contact form)
	========================= */
.modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 60;
}

.modal[aria-hidden="false"] {
	display: flex;
}

.modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.modal-dialog {
	position: relative;
	width: 95%;
	max-width: 720px;
	margin: 1rem;
	z-index: 70;
	transform: translateY(0);
}

.modal-content {
	/* Fondo opaco para evitar que el blur del overlay se “filtre” al contenido */
	background: var(--surface);
	border: 1px solid var(--card-border);
	box-shadow: var(--card-shadow);
	padding: 1.25rem;
	border-radius: .6rem;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	filter: none;
	opacity: 0;
	transform: translateY(-8px) scale(.98);
	transition: transform 260ms cubic-bezier(.2, .9, .2, 1), opacity 220ms ease;
}

.modal-close {
	position: absolute;
	right: 8px;
	top: 8px;
	background: transparent;
	border: none;
	color: var(--text-color);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.modal[aria-hidden="false"] .modal-overlay {
	animation: overlay-fade-in 220ms ease forwards;
}

.modal[aria-hidden="false"] .modal-content {
	opacity: 1;
	transform: translateY(0) scale(1);
}

@keyframes overlay-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes overlay-fade-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

#modal-form-target .contact-card {
	margin: 0;
	/* El panel lo aporta .modal-content; evitamos doble “card” translúcida */
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: .5rem;
	margin-top: .75rem;
}

.modal-actions .btn {
	padding: .5rem .75rem;
}

/* =========================
	Sección: Sobre Nosotros (#nosotros)
	========================= */
#nosotros h2 {
	font-size: clamp(2rem, 5.2vw, 3.5rem);
	line-height: 1.03;
}

#nosotros p {
	font-size: clamp(1rem, 2.1vw, 1.35rem);
	line-height: 1.75;
	color: var(--text-muted);
	max-width: 68ch;
	margin-left: auto;
	margin-right: auto;
}

/* =========================
	Sección: Fundadores (#fundadores)
	========================= */
#fundadores .founders-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.25rem;
}

#fundadores .founder-card {
	position: relative;
	overflow: hidden;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	box-shadow: var(--card-shadow);
	border-radius: .9rem;
	padding: 1.5rem;
	text-align: center;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: .25rem;
}

#fundadores .founder-avatar {
	width: 240px;
	height: 240px;
	border-radius: 999px;
	object-fit: cover;
	display: block;
	margin: 0 auto .75rem;
	border: 2px solid rgba(255, 255, 255, 0.10);
	transform-origin: center top;
	transition: transform 260ms cubic-bezier(.2, .9, .2, 1);
}

.theme-light #fundadores .founder-avatar {
	border-color: rgba(10, 25, 47, 0.12);
}

#fundadores .founder-name {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--section-text);
	transition: opacity 200ms ease, transform 260ms cubic-bezier(.2, .9, .2, 1);
}

#fundadores .founder-quote {
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	top: 56%;
	bottom: 1.25rem;
	margin: 0;
	color: var(--text-muted);
	line-height: 1.6;
	font-size: 1.05rem;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 200ms ease, transform 260ms cubic-bezier(.2, .9, .2, 1);
	pointer-events: none;
}

#fundadores .founder-card:hover .founder-quote {
	opacity: 1;
	transform: translateY(0);
}

#fundadores .founder-card:hover .founder-name {
	opacity: 0;
	transform: translateY(-8px);
}

#fundadores .founder-card:hover .founder-avatar {
	transform: translateY(-10px) scale(0.60);
}

@media (min-width: 768px) {
	#fundadores .founders-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* =========================
	Portafolio
	========================= */
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.25rem;
}

.portfolio-card {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	box-shadow: var(--card-shadow);
	border-radius: .9rem;
	color: var(--section-text);
	padding: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: .85rem;
	height: 100%;
	overflow: hidden;
}

.portfolio-card__stage {
	position: relative;
	width: 100%;
	height: 190px;
	border-radius: .75rem;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.12);
}

.portfolio-card__media {
	position: absolute;
	inset: 0;
	opacity: 1;
	visibility: visible;
	transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.portfolio-card__details {
	position: absolute;
	inset: 0;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	opacity: 0;
	transform: translateY(14px);
	visibility: hidden;
	pointer-events: none;
	transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.portfolio-card:hover .portfolio-card__details,
.portfolio-card:focus-within .portfolio-card__details {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {

	.portfolio-card__media,
	.portfolio-card__details {
		transition: none;
	}

	.portfolio-card__details {
		transform: none;
	}
}

.portfolio-card:hover .portfolio-card__media,
.portfolio-card:focus-within .portfolio-card__media {
	opacity: 0;
	visibility: hidden;
}

.portfolio-card h3,
.portfolio-card p {
	margin: 0;
}

.portfolio-card .btn {
	align-self: flex-start;
	margin-top: auto;
}

@media (min-width: 640px) {
	.portfolio-card__stage {
		height: 230px;
	}
}

@media (hover: none) {
	.portfolio-card__stage {
		height: auto;
	}

	.portfolio-card__media,
	.portfolio-card__details {
		position: static;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: none;
	}

	.portfolio-card__details {
		padding: .9rem 0 0;
	}
}

@media (min-width: 768px) {
	.portfolio-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.portfolio-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* =========================
	Media Queries / Responsive
	========================= */
@media (min-width: 768px) {
	.modal-dialog {
		width: 720px;
	}
}

@media (min-width: 1024px) {
	#inicio {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}

	#inicio .hero-row-top {
		align-items: center;
		gap: 2.5rem;
	}

	#inicio .hero-what-col {
		padding: 1.75rem;
	}
}

/* Pantallas medianas: optimizar hero banner */
@media (min-width: 768px) and (max-width: 1023px) {
	#inicio {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	#inicio .hero-row-top {
		flex-direction: column;
		gap: 1.5rem;
		align-items: stretch;
	}

	#inicio .hero-title-col {
		flex: 1 1 auto;
		min-width: auto;
	}

	#inicio .hero-what-col {
		flex: 1 1 auto;
		min-width: auto;
		padding: 1.5rem;
		background: var(--card-bg);
		border: 1px solid var(--card-border);
		border-radius: 0.5rem;
	}

	#hero-action-title {
		font-size: 1.75rem;
	}

	#hero-action-desc {
		font-size: 1rem;
	}

	.hero-title {
		font-size: 2.5rem;
	}
}

/* Forzar 2 columnas entre 750px y 1025px con mínimo 250px por card */
@media (min-width: 750px) and (max-width: 1025px) {
	.pricing-grid {
		grid-template-columns: repeat(2, minmax(250px, 1fr));
	}

	#servicios .grid {
		grid-template-columns: repeat(2, minmax(250px, 1fr));
	}

	#inicio .project-cards {
		display: grid;
		grid-template-columns: repeat(2, minmax(250px, 1fr));
		gap: 1rem;
	}

	.pricing-card,
	.project-card {
		min-width: 250px;
	}
}

@media (max-width: 768px) {
	#inicio {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.feature-card {
		order: 3
	}

	.feature-list {
		order: 2
	}

	.site-section h2::after {
		bottom: -16px;
		width: 64px
	}

	#inicio .hero-stats-bar {
		flex-direction: row;
		align-items: center;
	}

	#inicio .stat-list {
		justify-content: space-around;
	}

	#inicio .project-card {
		flex: 1 1 100%;
	}
}

@media (max-width: 640px) {
	#inicio {
		margin-top: 4rem;
		padding-bottom: 4rem;
	}

	#hero-action-title {
		font-size: 1.6rem
	}

	#hero-action-desc {
		font-size: 1rem
	}

	.hero-title {
		font-size: 2rem
	}

	.nav-link {
		display: none
	}

	.tech-badge {
		padding: .3rem .4rem;
		line-height: 0;
	}

	.tech-logo {
		width: auto;
		height: auto;
		max-width: 32px;
		max-height: 32px;
	}

	#nosotros {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	#nosotros h2 {
		font-size: 1.6rem;
	}

	#nosotros p {
		font-size: 0.98rem;
		line-height: 1.6;
	}
}

@media (max-width: 480px) {
	#inicio {
		margin-top: 4rem;
		padding-bottom: 4rem;
	}

	#estadisticas .stat-number {
		font-size: 2rem;
	}

	#estadisticas .stat-label {
		font-size: 1rem;
		font-weight: 700;
	}

	#estadisticas .stat-list {
		flex-direction: column;
		gap: .5rem;
		align-items: center;
	}

	#inicio .hero-stats-bar {
		flex-direction: column;
		align-items: center;
		padding: .75rem 0;
	}

	#inicio .stat-list {
		flex-direction: column;
		gap: .75rem;
		align-items: center;
		justify-content: center;
	}

	#inicio .stat-item {
		min-width: auto;
		width: 100%;
		align-items: center;
	}
}

@media (max-width: 640px) {
	#inicio {
		/* en móviles, que el hero crezca según contenido */
		padding-top: 1rem;
		padding-bottom: 1.5rem;
	}

	/* Añadir padding lateral leve para móviles y mantener los ajustes tipográficos */
	#nosotros {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	#nosotros h2 {
		font-size: 1.6rem;
	}

	#nosotros p {
		font-size: 0.98rem;
		line-height: 1.6;
	}
}

.carousel {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.carousel-track {
	display: flex;
	will-change: transform;
	animation: scroll 20s linear infinite;
	--scroll-width: 0px;
}

.carousel-group {
	display: flex;
	gap: 48px;
}

.carousel-item {
	width: 128px;
	flex-shrink: 0;
}

.carousel-item img {
	width: max-content;
	width: 80px;
	height: auto;
	display: block;
}

@media (min-width: 768px) {
	.carousel-item {
		width: 180px;
		flex-shrink: 0;
	}
}

@keyframes scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-1 * var(--scroll-width)));
	}
}