:root {
  --bg: #090a0f;
  --surface: #11131a;
  --surface-2: #171a25;
  --text: #e7e8ed;
  --muted: #9aa0b8;
  /*--accent: #58b5ff;
  --accent-2: #9f7cff;*/
  --accent: #BBDCF7;
  --accent-2: #008D8D;
  --radius: 22px;
    --accent-3: #c1b6b1;
  --accent-4: #773d20;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #05060a;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h2 {
  text-align: center;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 10, 15, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 56px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li a {
  color: var(--muted);
  font-weight: 500;
  transition: color .2s ease;
}

.nav-list li a:hover,
.nav-list li a:focus {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 100vh;
  /*display: grid;
  place-items: center;*/

  display: flex;
  flex-direction: column;
  align-items: center;       /* Centra horizontalmente */
   justify-content: space-between; /* Alinea arriba verticalmente */

  padding: 20px 24px 80px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(88, 181, 255, 0.16), transparent 24%),
              radial-gradient(circle at bottom right, rgba(159, 124, 255, 0.14), transparent 18%),
              linear-gradient(180deg, #090a0f 0%, #05060a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
}

.hero-content h1 {
  font-style: italic;
  font-size: clamp(2.4rem, 3vw, 3.2rem); 
  color: rgb(82, 34, 13);

}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow,
.section-eyebrow {
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.hero h1,
.section-heading h2 {
 /* font-size: clamp(2.8rem, 4vw, 4.4rem);*/
  margin: 0;
  line-height: 1.02;
}

.hero-text {
  margin: 24px auto;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-actions {
  margin-top: auto; 
  
  /* CAMBIO: Asegura que los botones queden sobre el video y sean clickeables */
  position: relative;
  z-index: 2; 

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060a;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}



.section-heading {
  max-width: 880px;
  margin: 0 auto 40px;
  text-align: center;
}
/*
.imagen-producto{
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
*/
/* ====== Relevant CSS PARA LAS TARJETAS CARRUSEL====== */
.scene, .a3d { display: grid }

.scene {
	/* prevent scrollbars */
	overflow: hidden;
	/* for 3D look; smaller = more extreme effect */
	perspective: 35em;
	mask: /* lateral fade */
		linear-gradient(90deg, 
				#0000, red 20% 80%, #0000)
}

.a3d {
	place-self: center /* middle align */;
	/* don't flatten 3D transformed children 
	 * of this parent having its own 3D transform */
	transform-style: preserve-3d;
	animation: ry 15s linear infinite
}
/* simplest y axis rotation */
@keyframes ry { to { rotate: y 1turn } }

.imagen-producto {
	/* base card width, you may change this */
	--w: 17.5em;
	/* compute base angle corresponding to a card */
	--ba: 1turn/var(--n); /* in the future: sibling-count() */
	grid-area: 1/ 1 /* stack in same one grid cell */;
	width: var(--w);
	aspect-ratio: 7/ 10;
	object-fit: cover;
	border-radius: 1.5em;
	/* don't want to see back of cards in front of screen plane */
	backface-visibility: hidden;
	/* need to use a transform chain here, cannot use separate 
	 * rotate & translate properties because they'd be applied 
	 * in wrong order (translate, then rotate) for what we need */
	transform: 
		/* rotate around y axis; in the future: sibling-index() */
		rotatey(calc(var(--i)*var(--ba)))
		/* only after that translate along z axis with minus */
		translatez(calc(-1*(.5*var(--w) + .5em)/tan(.5*var(--ba))))
}

@media (prefers-reduced-motion: reduce) {
	.a3d { animation-duration: 15s }
}

/* ====== General page prettifying and layout ====== */
html, body { display: grid }

html { height: 100% }

body { background: #fff3ed }


/*Clase imagen-producto*/
.imagen-producto:hover {
  transform: scale(1.15);
  transition: transform .3s ease;
}

.features,
.products,
.about,
.newsletter {
  padding: 80px 24px;
    background: radial-gradient(circle at top left, rgba(88, 181, 255, 0.16), transparent 24%),
              radial-gradient(circle at bottom right, rgba(232, 156, 97, 0.14), transparent 18%),
              linear-gradient(180deg, #090a0f 0%, #05060a 100%);
}

.feature-grid,
.product-grid,
.about-grid{
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.product-card,
.newsletter-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.feature-card a,
.newsletter-card a ,  .product-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
}

.feature-card h3,
.product-body h3,
.newsletter-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.feature-card p,
.product-body p,
.about-list li,
.newsletter-card p {
  color: var(--muted);
  line-height: 1.8;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px;
}
.product-image img{
  width: 100%;
  height: 100%;
  margin-left: auto;
  object-fit: cover;
  display: block;
}

.product-body {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  flex: 1;
}

.price {
  color: var(--accent);
 font-weight: bold;
  font-size: 1.2rem;
  margin-top: auto;
  
}

.about-grid {
  grid-template-columns: 1fr 1fr;
}

.about-text{
  text-align: center;
  color: var(--muted);
  text-shadow: 2px 3px 5px var(--accent-2);
} 
 

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
}

.about-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.newsletter-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-top: 28px;
}

.newsletter-form input{
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.newsletter-form textarea {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  resize: none;
}


.newsletter-form input::placeholder, .newsletter-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  padding: 10px 20px;
}
/*===========SERVICIOS==========*/

.image-placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.image-placeholder img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}


.nosotros-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.nosotros-logo img {
  width: 300px;
  height: auto;
}

/*FOOTER*/
.site-footer {
  padding: 48px 24px;
  background: #05060a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand p,
.footer-copy {
  color: var(--muted);
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img {
  width: 250px;
  height: auto;
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.footer-social svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/*BLOQUE LEGAL*/
.legal {
  padding: 4rem 1.5rem;
    background: radial-gradient(circle at top left, rgba(88, 181, 255, 0.16), transparent 24%),
              radial-gradient(circle at bottom right, rgba(159, 124, 255, 0.14), transparent 18%),
              linear-gradient(180deg, #090a0f 0%, #05060a 100%);
}

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.legal-block {
    background: radial-gradient(circle at top left, rgba(88, 181, 255, 0.16), transparent 24%),
              radial-gradient(circle at bottom right, rgba(159, 124, 255, 0.14), transparent 18%),
              linear-gradient(180deg, #090a0f 0%, #05060a 100%);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.legal-block h3 {
  margin-bottom: 0.5rem;
}

.legal-block p,
.legal-block li {
  font-size: 0.95rem;
  line-height: 1.6;
}


/*
BLOQUE CHECKOUT
*/

/* =========================
   CHECKOUT PRO
========================= */

.checkout-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.checkout-form {
  display: grid;
  gap: 30px;
  margin-top: 20px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.checkout-right {
  position: sticky;
  top: 100px;
}

.resumen-card {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.resumen-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.resumen-envio {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;

}

.resumen-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--accent);
}
/*metodos de pago*/

.metodos-pago {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.metodo-pago {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.metodo-pago:hover {
  border-color: var(--accent);
}


/* BLOQUES */
.form-block h3 {
  margin-bottom: 10px;
  color: var(--text);
}

/* GRID INTELIGENTE */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-grid input {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0 15px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
}


.form-grid select {
  background: rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: 12px;
  color: white;
  height: fit-content;
  position: sticky;
  top: 45px;
}

.form-grid select option {
  width: 100%;
  margin: 10px auto;
  padding: 8px;
  background: #111;
  color: white;
  border: 1px solid #333;
  border-radius: 12px;

}

/* INPUT FULL WIDTH */
.form-grid input:first-child {
  grid-column: span 2;
}

.info-adicional {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 30px;
}

.info-adicional p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.8rem;
}

/* CHECKBOX */
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
}

/* FACTURA OCULTA */
.hidden {
  display: none;
}

/* BOTÓN */
.checkout-btn {
  width: 100%;
  margin-top: 10px;
  font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid input:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav-list {
    position: fixed;
    inset: 72px 24px auto;
    right: 24px;
    width: min(260px, calc(100vw - 48px));
    background: rgba(9, 10, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    flex-direction: column;
    padding: 18px;
    gap: 14px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .nav-list.active {
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
