/* =========================
   DRAVIEL — CSS DEFINITIVO
   ========================= */

/* Reset mínimo */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
html {
  font-size: 16px;
}

body {
  font-family:"Cormorant Garamond", serif;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.12em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color:#f1eee8;
  color:#2a2a2a;
  margin:0;
   font-size:17px;
}
.home {
  position: relative;
  overflow-x: hidden;

  background:
    linear-gradient(
      to bottom,
      #f1eee8,
      #ece7df
    );
}

.home::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: 0.035;

  background-image:
    radial-gradient(
      rgba(0,0,0,0.35) 0.6px,
      transparent 0.6px
    );

  background-size: 3px 3px;

  z-index: 0;
}

.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
}

.hero::after {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -140px;
  top: 50%;

  transform: translateY(-50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(60,40,20,0.06),
      transparent 72%
    );

  filter: blur(40px);

  z-index: 0;
}

.hero-img,
.manifesto {
  position: relative;
  z-index: 2;
}

body.home::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;
  z-index: -1;

  opacity: 0.035;

  background-image:
    radial-gradient(rgba(0,0,0,0.4) 0.5px, transparent 0.5px);

  background-size: 4px 4px;
}

.main::after {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -120px;
  bottom: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      rgba(80,60,40,0.06),
      transparent 70%
    );

  filter: blur(40px);
}


.home .header{
  position: sticky;
  top: 0;

  text-align: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 34px;

  letter-spacing: 0.75em;
  font-weight: 400;

  color: rgba(20,20,20,0.78); /* 🔥 clave: no negro puro */

  padding: 40px 0 30px 0;

   z-index: 10;
   -webkit-font-smoothing: antialiased;
   background: inherit; 
   border-bottom: 1px solid rgba(0,0,0,0.05);
  
}

.home .header::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 18px auto 0 auto;
  background: rgba(0,0,0,0.2);
}

.header h1{
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  letter-spacing: 0.55em;
  font-weight: 400;
  margin-top: 40px;
  text-align:center; 
  color: #1a1a1a;
  
}

.home .hero-img{
  max-width:200px;
  width:auto;
 
  transform: scale(0.7) translateY(10px);
  margin-top:40px; 
  justify-self: start;
  max-height: 520px;
  opacity:0.98;

  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.10));
   
}


.home .main{
  max-width:1000px;
  margin:0 auto;
  padding:20px;
   margin-top:20px;
   padding-bottom:160px; 
}

.home .hero{
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items:center;
  gap:120px;
  
}


/* Links */
a {
  color: inherit;
  text-decoration: none;
}

h1{
  font-size:42px;
  letter-spacing:0.35em;
  font-weight:300;
  text-align:center;
  margin-bottom:60px;
}

a:hover {
  opacity: 0.45;
}

.container{
  
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 80px;
}

.grid {
  display: grid;
  grid-template-columns:  1fr 1.05fr;
  gap: 80px;
 
}

.left {
  position: sticky;
  top: 80px;
  align-self: start; /* 👈 MUY IMPORTANTE */
  padding-left: 20px;
}


/* =========================
   HOME
   ========================= */

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom:120px;
   color: #444;
}


.top-header{
  width:100%;
  text-align:center;
  padding:20px 0;
}

.brand{
  font-size:12px;
  letter-spacing:0.5em;
  opacity:0.6;
}

.section {
  margin-top: 120px;
}
.img {
  max-width: 260px;
  opacity: 0.95;
}

.hero-img{
 max-width:360px;
  width:100%;
  height:auto;
  display:block;
  margin:40px auto 30px auto;
}

.hero-title{
  font-size:48px;
  letter-spacing:0.35em;
  font-weight:300;
  text-align:center;
  margin:40px 0 80px 0;
}

.divider{
  width:60px;
  height:1px;
  background:#333;
  margin:40px auto 60px auto;
  opacity:0.3;
}

.header{
  width:100%;
  text-align:center;
  margin-bottom:40px;
}

.logo{
  font-size:14px;
  letter-spacing:0.4em;
  opacity:0.7;
}

/* Índices 01 · 02 · 03 */
.index-list {
  display: block;
  margin-top: 56px;
}

.index-item {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.35em;
  opacity: 0.65;
}

.wine-index {
  font-size: 13px;
  letter-spacing: 0.35em;
  opacity: 0.65;
}



/* =========================
   PÁGINA VINO
   ========================= */
   
.wine-header{

  grid-column:1 ;
  margin-bottom: 80px;
   display: flex;
  flex-direction: column;
  gap: 12px;
  
  justify-content: space-between;
  padding-left: 20px
  
 
}

.back{
  text-decoration:none;
  font-size:18px;
  color:inherit;
  opacity:0.45;
  transition: all 0.25s ease;
   margin-bottom: 6px;
}   

.back:hover{
  opacity:1;
  transform: translateX(-3px);
}


/* Número vino */
.wine-number {
  font-size: 18px;
  letter-spacing: 0.6em;
  opacity: 0.6;
  
  
 
}

/* Meta vino */
.wine-meta {
  letter-spacing:0.22em;
  line-height:1.6;
  opacity:0.65;
  margin-bottom:60px;
  margin-top:30px;
  grid-column:1;
  
   margin: 15px 0;
  font-size: 12px;
  color: #666;
  
}

.wine-meta strong{
  font-weight: 500;
}

 
 .wine-image {
  grid-column: 2;
  justify-self: center;
  align-self: start;
  width: 90px;
  text-align: center;
}

.wine-image img {
  width: 100%;
  height: auto;
  display: block;
}
 
 
 .wine-meta,
.wine-text,
.vino-compra{
  grid-column:1;
  margin-top: 40px;
}

.vino-compra{
  align-self:start;
   display: flex;
  flex-direction: column;
  justify-content: flex-start;
   max-width: 320px;
}
 
 .botella {
  width: 220px;
  height: auto;
  display: block;
  filter: none;
  opacity: 1;
 }


/* Texto mínimo */
.wine-text {
  font-size:15px;
  letter-spacing:0.02em;
  line-height:2;
  max-width:320px;
  opacity:0.75;
  margin-bottom:40px;
  color: #2f2f2f;
  grid-column:1;
  margin-top:30px;
  opacity: 0.8;
}

.wine-text::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.wine-text p {
  margin: 0 0 8px 0;
}

/* =========================
   MANIFIESTO
   ========================= */
   
   .home .manifesto::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:40px;
  height:1px;
  background:#2a2a2a;
  opacity:0.25;
}

.home .manifesto {
  max-width:360px;
  font-size:24px;
  line-height:2.2;
  opacity:0.6;
  text-align:left;
  animation:bottleFade 1.2s ease-out;
  animation-delay:0.3s;
  animation-fill-mode:both;
  justify-self:end;
  color:#444;
  word-spacing:0.05em;
  margin-top:-10;
  letter-spacing: 0.02em;
  font-family: "Cormorant Garamond", serif;
   position: relative;
  padding-top: 30px;
  
  
}

.home .manifesto-label{
  font-size:11px;           /* un poco más pequeño */
  letter-spacing:0.35em;     /* más aire = más fino */
  opacity:0.5;

  margin-bottom:28px;       /* 👈 menos separación */

  display:block;
  text-transform: uppercase;
}

.home .manifesto p:not(.manifesto-label):first-of-type{
  font-weight:500;
  color:#1f1f1f;
  margin-top: 6px;
}

.home .manifesto p:first-child {
  color: #1a1a1a;
}

.home .manifesto p{
  margin:0;
}

.manifesto span{
  font-weight:500;
  opacity:0.9;
}

.manifesto p {
  margin: 0;
}

.manifesto p + p {
  margin-top: 10px;
}

.manifesto p:nth-child(4) {
  margin-top: 26px;
  font-style: italic;
}


.manifesto p:nth-child(5) {
  margin-top: 16px;
}

.home .vinos{
  grid-column:1 / -1;	
  margin-top:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:100px;
  
}

.vinos-label {
  font-size: 13px;
  letter-spacing: 0.32em;
  opacity: 0.55;
  margin-bottom: 50px;
}

.home .vinos a{
  position:relative;
  display:inline;
  margin:18px 0;
  text-decoration:none;
  color:#2a2a2a;
  letter-spacing:0.28m;
  transition:all 0.25s ease;
  font-size:20px;
  opacity: 0.75;
   font-weight: 400;
}


.home .vinos a:hover{
  transform:translateX(6px);
  opacity: 1;
   color: #1a1a1a;
}

.home .vinos a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:1px;
  background:#aaa;
  transition:width 0.3s ease;
}

.home .vinos a:hover::after{
  width:100%;
}

.home .vinos a::before{
  content:"";
  position:absolute;
  left:-20px;
  top:50%;
  width:0;
  height:1px;
  background:#333;
  opacity:0.4;
  transition:0.25s;
}

.home .vinos a:hover::before{
  width:12px;
}

.footer {
  width: 100%;
  text-align: center;
  margin-top: 140px;

  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 clave */

  font-size: 13px;
  letter-spacing: 0.18em;
  color: #666;
    max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  
}

.footer-line {
  width: 120px;
  height: 1px;
  margin: 0 auto 20px auto;
  background: linear-gradient(to right, transparent, #bbb, transparent);
}

.footer .origin {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: #888;
}


.footer a{
  text-decoration:none;
  color:inherit;
  transition:0.2s;
}

.footer a:hover{
  opacity:1;
}

.footer,
.footer a,
.footer .origin {
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}


.wine-page {
  padding-bottom: 120px;
 
}



/* =========================
   CONTACTO
   ========================= */


/* Contacto */
.contact{
  margin-top:80px;
  font-size:14px;
  letter-spacing:0.18em;
  opacity:0.5;
  text-decoration:none;
  color:inherit;
}

/* Contacto */
.home .contact{
  margin-top:80px;
  font-size:14px;
  letter-spacing:0.18em;
  opacity:0.5;
  text-decoration:none;
  color:inherit;
}

/* =========================
   RESPONSIVE (mínimo)
   ========================= */

@media (max-width: 600px) {
  .container {
    padding: 20px 24px 60px 24px;
  }

  .brand {
    margin-bottom: 96px;
  }
  
  .wine-image {
  margin-bottom: 60px;
}

.wine-meta {
  margin-bottom: 60px;
}


.wine-image img {
  max-width: 300px;
}



 .botella{
    max-height: 340px;
  }
  
   .home .manifesto{
    transform:none;
    margin:60px auto;
  }


  footer {
    margin-top: 120px;
  }
}

@media (min-width: 1000px){

  .botella{
    max-height: 520px;
  }

}

@media (min-width:1200px){

  .home .hero-img{
    max-width:420px;
  }

}

@media (min-width: 768px) {
   
   .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 80px;
  }

   
  .grid {
    display: grid;
    grid-template-columns:  1fr 1fr;
    gap: 80px;
   
  }
}

@media (max-width:700px){

  .home .hero{
    grid-template-columns:1fr;
    text-align:center;
  }

  .home .manifesto{
    margin:40px auto;
  }

}

/* MOBILE */
@media (max-width: 767px) {
 

  .left {
    position: static;
  }
  
  .left, .right {
    display: contents;
  }
  
 
   .container {
    padding: 40px 20px 80px 20px;
  }
 
 
  .grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  
  .wine-header {
    order: 1;
    margin-bottom: 20px;
	 text-align: center;
  }
  
  
  .wine-image {
    order: 2;
  }

  .wine-text {
    order: 3;
  }

  .wine-story {
    order: 4;
  }

  .wine-meta {
    order: 5;
  }

  .vino-compra {
    order: 6;
  }
  
  .wine-image {
    text-align: center;
    margin: 40px 0;
	 justify-content: center;
  }

  .botella {
    max-height: 420px;
    width: auto;

    transform: translateY(-10px);

    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.15));
  }
  
   .wine-text,
  .wine-story {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .wine-text {
    font-size: 15px;
    line-height: 2.1;
    opacity: 0.85;
  }

  .wine-story {
    font-size: 15px;
    line-height: 2.2;
    color: #444;
  }
  
    .wine-meta {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.25em;
    margin-top: 20px;
    opacity: 0.6;
  }
  
  
  .vino-compra {
    max-width: 90%;
    margin: 40px auto 0 auto;
  }

  .vino-precio {
    text-align: center;
  }

  .boton-compra {
    margin-top: 20px;
    padding: 16px;
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  
   .wine-number {
    font-size: 16px;
    letter-spacing: 0.6em;
    opacity: 0.5;
	text-align: center;
  }

  .wine-text::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: rgba(0,0,0,0.3);
    margin: 20px auto;
  }

.vinos-label {
  justify-content: center;
}

}

/* =========================
   BLOQUE COMPRA CONTROLADA
   ========================= */

.vino-compra {
  margin-top: 00px;
  max-width: 360px;
  margin-bottom:80px;
  grid-column:1;
  align-self:center; /* evita que se hunda */
    margin: 25px 0;
	
}

.vino-precio {
  font-size: 18px;
  letter-spacing: 1px;
  opacity: 0.75;
  margin-bottom: 20px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  
}

.vino-precio strong {
font-size: 28px;
font-weight: 400;
letter-spacing:0.5px;
}

.vino-aviso {
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.55;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

.boton-compra {
 background: #111;
  color: white;
  letter-spacing: 0.18em;
  font-size: 12px;

  padding: 16px;
  border: none;

  transition: all 0.3s ease;

}

.boton-compra:hover {
 background: #000;
  transform: translateY(-2px);
}

/* =========================
   FORMULARIO PEDIDO
   ========================= */

.vino-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.vino-form input {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
}

.vino-form input,
.vino-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  background: transparent;
}

.vino-form input::placeholder {
  opacity: 0.5;
}

.vino-form input:focus {
  outline: none;
  border-color: rgba(0,0,0,0.5);
}


select{
  width:100%;
  padding:10px 12px;
  font-size:13px;
  font-family:inherit;

  background-color:#f7f6f2;
  border:1px solid #2a2a2a;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
}

@keyframes aparecerBotella{
  from{
    opacity:0;
    transform: translateY(20px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

@keyframes bottleFade{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes bottleFloat{
  0% { transform:translateY(40px) scale(1.08); }
  100% { transform:translateY(30px) scale(1.08); }
}

label {
  font-size: 11px;
  letter-spacing: 0.25em;
  opacity: 0.6;
}

.wine-story {
  margin-bottom: 80px;
  max-width: 380px;

  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.02em;

  color: #444;
   margin: 30px 0;
}

.wine-story p {
  margin: 0;
   margin-bottom: 14px;
    line-height: 1.5;
}

.wine-story p + p {
  margin-top: 14px;
}

.wine-story p:last-child {
  margin-top: 20px;
  font-style: italic;
  color: #222;
}

.home-story {
  max-width: 420px;
  margin: 100px auto 60px auto;

  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;

  color: #333;
  text-align: center;
}

.home-story p {
  margin: 0;
}

.home-story p + p {
  margin-top: 14px;
}

.home-story p:first-child {
  color: #111;
}
