
/* CSS Variables - Global Theme */
:root {
	--bg-dark: #0b0f14;
	--bg-soft: #121826;
	--bg-card: #161d2e;
	--brand-red: #b31224;
	--brand-red-hover: #8f0e1c;
	--text-main: #ffffff;
	--text-muted: #9aa4b2;
	--border-soft: rgba(255,255,255,.08);
	--input-fill: #151921; 
}

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
	font-family: 'Manrope', sans-serif; 
	background: var(--bg-dark); 
	color: var(--text-main); 
	line-height: 1.6; 
	scroll-behavior: smooth; 
}
a { color: inherit; text-decoration: none; transition: 0.3s; }
section { padding: 110px 24px; }
.container { max-width: 1200px; margin: auto; }

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
p { color: var(--text-muted); }

/* Navigation Header */
header { 
	position: fixed; top: 0; left: 0; right: 0; z-index: 100; 
	backdrop-filter: blur(14px); background: rgba(11,15,20,.45); 
	border-bottom: 1px solid var(--border-soft); transition: all .3s ease; 
}
header.scrolled { background: rgba(11,15,20,.95); box-shadow: 0 12px 34px rgba(0,0,0,.55); }
header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 42px; width: auto; }
.logofooter img { height: 160px; width: auto; }

/* Header Socials & Actions */
.nav-actions { display: flex; align-items: center; gap: 15px; }
.header-socials { 
	display: flex; gap: 12px; align-items: center; 
	border-right: 1px solid rgba(255,255,255,0.1); padding-right: 15px; 
}
.header-socials a { color: var(--text-muted); font-size: 1rem; opacity: 0.7; }
.header-socials a:hover { color: var(--text-main); opacity: 1; transform: translateY(-2px); }

.btn-header { 
	padding: 8px 18px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; 
	border: 1px solid rgba(255,255,255,0.5); color: var(--text-main); 
	background: transparent; transition: all 0.3s ease; cursor: pointer; 
}
.btn-header:hover { 
	background: var(--brand-red); border-color: var(--brand-red); 
	box-shadow: 0 5px 15px rgba(179,18,36,0.3); transform: translateY(-1px); 
}

.captcha-center {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Standard Buttons */
.btn { 
	padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: .9rem; 
	display: inline-flex; align-items: center; gap: 10px; transition: all .25s ease; 
	cursor: pointer; border: none; 
}
.btn-primary { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-hover)); color: #ffffff; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 10px 20px rgba(179,18,36,.3); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #ffffff; background: transparent; }

/* Custom Minimalist WhatsApp Button */
.whatsapp-float { 
	position: fixed; bottom: 30px; right: 30px; 
	background: #1a212d; color: var(--text-main); 
	width: 55px; height: 55px; border-radius: 50%; 
	display: grid; place-items: center; font-size: 26px; z-index: 1000; 
	box-shadow: 0 8px 25px rgba(0,0,0,0.4); 
	border: 1px solid var(--border-soft);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.whatsapp-float:hover { 
	transform: scale(1.1) rotate(8deg); 
	background: var(--brand-red); 
	border-color: var(--brand-red);
	color: #fff;
}

/* Hero Section */
.hero { 
	min-height: 100vh; display: flex; align-items: center; position: relative; 
	overflow: hidden; background: linear-gradient(rgba(11,15,20,.75), rgba(11,15,20,.85)), 
	url('/images/hero_v2c.webp?auto=format&fit=crop&w=1600&q=80') center / cover no-repeat; 
}
.hero p { margin: 24px 0 36px; font-size: 1.1rem; max-width: 680px; }

.hero p + p{
	font-size:1rem;
	opacity:.8;
	margin-top:-10px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

/* Grid & Cards */
.gridCT { display: grid; gap: 0px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
 /*
.card { 
	background: linear-gradient(180deg, var(--bg-card), rgba(22,29,46,.85)); 
	border: 1px solid var(--border-soft); border-radius: 20px; padding: 34px; transition: 0.3s; 
}
.card i { font-size: 28px; color: var(--brand-red); margin-bottom: 16px; }
*/ 
.card {
	background: linear-gradient(180deg, var(--bg-card), rgba(22,29,46,.85));
	border: 1px solid var(--border-soft);
	border-radius: 18px;
	padding: 32px;
	transition: transform .25s ease, border-color .25s ease;
}

.card:hover {
	transform: translateY(-3px);
	border-color: rgba(255,255,255,.18);
}

.card i {
	font-size: 28px;
	color: var(--brand-red);
	margin-bottom: 16px;
}

/* event-flow */
.flow-grid{
	display:grid;
	grid-template-columns:repeat(3,1fr);
	gap:40px;
	text-align:center;
}

.flow-item{
	position:relative;
	padding-top:30px;
}

.flow-item::before{
	content:"";
	position:absolute;
	top:0;
	left:50%;
	width:40px;
	height:40px;
	border-radius:50%;
	background:rgba(179,18,36,.2);
	border:1px solid var(--brand-red);
	transform:translateX(-50%);
}

.flow-item i{
	font-size:22px;
	color:var(--brand-red);
	margin-bottom:10px;
}

/* Steps */
.steps { background: linear-gradient(180deg, rgba(40,42,93,.35), rgba(11,15,20,1)); }
.step { position: relative; padding-left: 42px; }
.step span { 
	position: absolute; left: 0; top: 0; width: 28px; height: 28px; 
	border-radius: 50%; background: rgba(179,18,36,.2); color: var(--brand-red); 
	display: grid; place-items: center; font-weight: 700; border: 1px solid var(--brand-red); 
}

/* --- CONTACT FORM --- */
.cta { background: linear-gradient(180deg, rgba(40,42,93,.2), rgba(11,15,20,1)); text-align: center; }
form { max-width: 520px; margin: 50px auto 0; display: grid; gap: 24px; }

.input-wrapper { position: relative; width: 100%; text-align: left; }

input, select, textarea { 
	padding: 16px 18px; 
	border-radius: 14px; 
	border: 1px solid var(--border-soft); 
	background-color: var(--input-fill); 
	color: var(--text-main); /* Cambiado a main para coincidir con la selección */
	font-family: inherit; 
	font-size: 1rem;
	transition: 0.3s; 
	width: 100%;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

::placeholder { color: var(--text-muted); opacity: 1; }

select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(154,164,178,1)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 18px;
}

/* Sincronización de color del placeholder del select */
select:invalid { color: var(--text-muted); }
select option { background-color: #1a1f2b; color: var(--text-main); }

.error-label {
	position: absolute;
	left: 12px;
	bottom: -18px;
	color: #ff4d4d;
	font-size: 0.7rem;
	font-weight: 600;
	display: none;
	pointer-events: none;
}

.invalid-field { border-color: var(--brand-red) !important; }

input:focus, select:focus, textarea:focus { 
	border-color: var(--brand-red); 
	background-color: #1c222d; 
	color: var(--text-main);
}

.purpose-steps {
  margin-top: 40px;
  max-width: 720px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  color: var(--text-main);
}

.purpose-steps strong {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-red);
}

button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-loader {
	font-size: 1rem;
}

.section-soft {
	background: linear-gradient(180deg, var(--bg-soft), var(--bg-dark));
}

.section-dark {
	background: var(--bg-dark);
}

.insight-grid{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
	gap:26px;
	margin-top:30px;
}

.insight-card{
	background:linear-gradient(180deg,#121826,#0f141d);
	border:1px solid var(--border-soft);
	border-radius:18px;
	padding:28px;
	position:relative;
}

.insight-card i{
	font-size:24px;
	color:var(--brand-red);
	margin-bottom:14px;
}

.insight-card h3{
	margin-bottom:8px;
}

.insight-item{
	display:flex;
	align-items:flex-start;
	gap:20px;
	padding:20px 0;
	border-bottom:1px solid var(--border-soft);
}

.insight-item:last-child{
	border-bottom:none;
}

.insight-item i{
	font-size:26px;
	color:var(--brand-red);
	margin-top:4px;
}

.insight-item h3{
	margin-bottom:6px;
}

#event-flow{
	padding:90px 24px;
	border-bottom:1px solid var(--border-soft);
}


.results-grid{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
	gap:40px;
	text-align:center;
	margin-top:40px;
}

.result-item strong{
	font-size:2rem;
	display:block;
	margin-bottom:8px;
	color:var(--brand-red);
}

.result-item p{
	font-size:.9rem;
}

.event-list{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
	gap:30px;
	margin-top:40px;
}

.event-item{
	display:flex;
	gap:16px;
	align-items:flex-start;
}

.event-item i{
	color:var(--brand-red);
	font-size:22px;
	margin-top:4px;
}

.amcham-member{
	margin-top:22px;
	display:flex;
	align-items:center;
	justify-content:center;
	gap:12px;
	opacity:.75;
}

.amcham-member span{
	font-size:.8rem;
}

.amcham-member img{
	height:60px;
	width:auto;
}

/* Footer */
footer { padding: 60px 24px; border-top: 1px solid var(--border-soft); background: var(--bg-dark); text-align: center; }
.footer-socials { display: flex; justify-content: center; gap: 25px; margin: 25px 0; font-size: 1.4rem; }
.footer-socials a { opacity: 0.6; transition: 0.3s; color: var(--text-muted); }
.footer-socials a:hover { opacity: 1; color: var(--brand-red); }
.footer-purpose {font-size: 0.9rem;font-weight: 500;color: #9aa4b2;margin: 12px 0;text-align: center;}
.footer-seo {
  margin-top: 20px;
  text-align: center;
  opacity: 0.5;
}

.footer-seo a {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.footer-seo a:hover {
  opacity: 0.8;
  border-color: #fff;
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 768px) { 
	header .container { padding: 0 16px; height: 64px; }
	.logo img { height: 32px; }
	.logofooter img { height: 160px; }
	.header-socials { display: none; } /* Ocultar redes en el header mobile para dar espacio */
	.btn-header { padding: 8px 14px; font-size: 0.75rem; }
	
	section { padding: 80px 20px; }
	.hero { text-align: center; }
	.hero p { margin: 20px auto 30px; }
	.hero-actions { display: flex; flex-direction: column; gap: 12px; }
	.btn { width: 100%; justify-content: center; }
	
	form { gap: 28px; }
	.whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 22px; }

   .captcha-center {
	 justify-content: center;
   }
}
