:root {
--primary: #111111;
--primary-dark: #000000;
--accent: #ffffff;
--bg: #f5f5f5;
--text: #171717;
--white: #ffffff;
--maxw: 1100px;
}

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
color: var(--text);
background: var(--bg);
line-height: 1.6;
}

main {
margin-top: 2px;
}

.container {
width: min(92%, var(--maxw));
margin: 0 auto;
}

/* Header */
.header {
background: rgba(255, 255, 255, 0.92);
backdrop-filter: blur(8px);
border-bottom: 1px solid #eaeaea;
position: sticky;
top: 0px;
z-index: 1000;
}

.nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
min-height: 72px;
}

/* Logo */
.logo {
margin: 0;
display: flex;
align-items: center;
gap: 10px;
color: var(--primary-dark);
padding: 8px 0; /* aire vertical para el logo */
}

.logo-img {
width: 90px !important;
height: 90px !important;
object-fit: cover;
display: block;
border-radius: 10px;
}

.logo-text {
font-size: 0.95rem;
font-weight: 800;
letter-spacing: 0.4px;
line-height: 1.1;
}

/* Menu base (desktop) */
.menu {
list-style: none;
display: flex;
gap: 8px;
margin: 0;
padding: 0;
align-items: center;
}

.menu li {
display: flex;
align-items: center;
}

.menu a {
display: inline-flex;
align-items: center;
justify-content: center;
height: 34px;
padding: 0 10px;
text-decoration: none;
color: #1b1b1b;
font-weight: 600;
font-size: 0.88rem;
line-height: 1;
letter-spacing: 0.1px;
white-space: nowrap;
transition: color 0.2s ease;
}

.menu a:hover {
color: #000000;
}

/* Botón hamburguesa */
.menu-toggle {
display: none;
border: 1px solid #d9d9d9;
background: #fff;
color: #111;
border-radius: 8px;
width: 42px;
height: 42px;
font-size: 1.2rem;
cursor: pointer;
}

/* Nav desktop */
#mobileNav {
position: static;
}

/* Overlay menú */
.menu-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.25s ease, visibility 0.25s ease;
z-index: 1900;
}

.menu-overlay.show {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

/* Hero */
.hero {
background: linear-gradient(135deg, #000000 0%, #1a1a1a 60%, #2a2a2a 100%);
color: var(--white);
padding: 64px 0 56px;
}

.hero-content h2 {
margin-top: 0;
font-size: clamp(1.7rem, 3vw, 2.5rem);
max-width: 760px;
letter-spacing: 0.2px;
}

.hero-content p {
max-width: 700px;
margin-bottom: 20px;
color: #e7e7e7;
}

.hero-buttons {
display: flex;
gap: 12px;
flex-wrap: wrap;
}

/* Buttons */
.btn {
display: inline-block;
padding: 11px 18px;
border-radius: 999px;
text-decoration: none;
font-weight: 700;
border: 1.5px solid transparent;
cursor: pointer;
transition: all 0.25s ease;
}

.btn-primary {
background: #ffffff;
color: #111111;
border-color: #ffffff;
}

.btn-primary:hover {
background: #ededed;
transform: translateY(-1px);
}

.btn-outline {
background: transparent;
border-color: rgba(255, 255, 255, 0.65);
color: #ffffff;
}

.btn-outline:hover {
border-color: #ffffff;
background: rgba(255, 255, 255, 0.08);
}

/* Sections */
.section {
padding: 42px 0;
}

.section h3 {
font-size: 1.75rem;
margin-top: 0;
margin-bottom: 16px;
color: #0f0f0f;
letter-spacing: 0.2px;
}

.alt {
background: #efefef;
}

/* Cards */
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 16px;
}

.card {
background: #ffffff;
border-radius: 14px;
padding: 20px;
border: 1px solid #e8e8e8;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.card h4 {
margin-top: 0;
color: #111111;
}

/* ===== Fundadores (simple, sin flip) ===== */
.founders-grid {
margin-top: 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
}

.founder-card {
background: #ffffff;
border: 1px solid #e8e8e8;
border-radius: 14px;
padding: 18px;
text-align: center;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.founder-avatar {
width: 96px;
height: 96px;
margin: 0 auto 10px;
border-radius: 50%;
display: grid;
place-items: center;
background: linear-gradient(135deg, #2a2a2a, #111111);
color: #fff;
font-weight: 800;
font-size: 1.55rem;
letter-spacing: 0.8px;
text-transform: uppercase;
}

.founder-card h4 {
margin: 0;
font-size: 1rem;
color: #111;
}

.founder-role {
display: block;
margin-top: 4px;
font-size: 0.88rem;
color: #555;
font-weight: 600;
}

.founder-quote {
margin: 10px 0 0;
font-size: 0.9rem;
color: #333;
line-height: 1.45;
}

/* Gallery */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
}

.photo {
background: #ffffff;
border: 1.5px dashed #cfcfcf;
border-radius: 12px;
min-height: 120px;
display: grid;
place-items: center;
color: #666666;
font-weight: 700;
}

.note {
margin-top: 12px;
color: #555555;
font-size: 0.92rem;
}

/* Contact */
.contact-form {
display: grid;
gap: 12px;
max-width: 560px;
}

.contact-form label {
display: grid;
gap: 6px;
font-weight: 600;
color: #111111;
}

.contact-form input,
.contact-form textarea {
padding: 11px;
border-radius: 10px;
border: 1px solid #d7d7d7;
background: #ffffff;
font: inherit;
color: #111111;
}

.contact-form input:focus,
.contact-form textarea:focus {
outline: none;
border-color: #9a9a9a;
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.form-msg {
margin: 0;
font-weight: 700;
color: #111111;
}

/* Centrar sección contacto */
#contacto .container {
text-align: center;
}

#contacto .contact-form {
margin: 0 auto;
text-align: left;
}

/* Aliados - carrusel */
.supporters {
background: #111111;
color: #ffffff;
padding: 34px 0;
border-top: 1px solid #222;
}

.supporters h3 {
margin: 0 0 16px;
font-size: 1.2rem;
color: #ffffff;
text-align: center;
}

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

.logo-track {
display: flex;
align-items: center;
gap: 14px;
width: max-content;
animation: scrollLogos 28s linear infinite;
}

.brand {
min-width: 140px;
height: 70px;
background: #1a1a1a;
border: 1px solid #2a2a2a;
border-radius: 10px;
display: grid;
place-items: center;
padding: 8px;
}

.brand img {
max-width: 100%;
max-height: 46px;
object-fit: contain;
filter: grayscale(100%) contrast(1.1) brightness(1.05);
opacity: 0.95;
}

/* pausa al pasar mouse */
.logo-carousel:hover .logo-track {
animation-play-state: paused;
}

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

/* Footer */
.footer {
background: #0a0a0a;
color: #cfcfcf;
text-align: center;
padding: 24px 0;
border-top: 1px solid #1e1e1e;
}

/* Responsive */
@media (max-width: 850px) {
.logo-img {
width: 72px !important;
height: 72px !important;
border-radius: 14px;
}

.logo-text {
font-size: 0.88rem;
}

.menu-toggle {
display: inline-grid;
place-items: center;
}

#mobileNav {
position: fixed;
top: 0;
right: -280px;
width: 260px;
height: 100vh;
background: #111;
padding: 80px 16px 20px;
transition: right 0.28s ease;
z-index: 2000;
box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
}

#mobileNav.open {
right: 0;
}

#mobileNav .menu {
display: flex;
flex-direction: column;
gap: 8px;
align-items: stretch;
}

#mobileNav .menu li {
width: 100%;
}

#mobileNav .menu a {
display: block;
height: auto;
padding: 10px 12px;
border-radius: 8px;
color: #fff;
font-size: 0.95rem;
}

#mobileNav .menu a:hover {
background: rgba(255, 255, 255, 0.12);
}

.hero {
padding: 52px 0 44px;
}

.section {
padding: 34px 0;
}

.brand {
min-width: 120px;
height: 62px;
}

.brand img {
max-height: 40px;
}

.founders-grid {
grid-template-columns: 1fr;
}

.founder-avatar {
width: 86px;
height: 86px;
font-size: 1.35rem;
}
}
