/* styles.css - sitio Bordados Tucán
   - Colores y tipografía configurables en :root
   - Coloca tus imágenes en la carpeta /imagenes/ y usa los nombres indicados.
*/

:root{
  --red-main: #f63a26;
  --red-dark: #ae3115;
  --white: #ffffff;
  --black: #000000;
  --max-width: 1200px;
  --container-padding: 24px;
}

/* Reset y base */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: 'Montserrat', Arial, sans-serif;
  background:var(--black);
  color:var(--white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  
}

/* Container */
.container{
  width:90%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:var(--container-padding) 0;
}

/* Header / Nav */
.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:50;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

.logo{
  width: 100px;
  height: auto;
  margin-right: 4px;
  margin-top: 2px;
}

.main-nav a{
  color:var(--white);
  text-decoration:none;
  margin-left:18px;
  font-weight:500;
  transition: color .25s ease, transform .18s ease;
}
.main-nav a:hover{ color: var(--red-main); transform: translateY(-2px);}

.redes{
  position: fixed;
  top: 100px;
  right: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.redes a {
  background-color: #f63a26;
  padding: 10px 20px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5em;
  transition: all 0.3s ease;
  margin: 6px 10px;
  border-radius: 30px 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.redes a:hover {
  background-color: #831c10;
  color: #c4c2bf;
  width: 60px;
}

#instagram a,
#facebook a {
  background-color: #f63a26;
  padding: 10px 25px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.3em;
  box-sizing: border-box;
  transition: all .6s;
  width: 55px;
  margin: 5px 0;
}

#instagram a:hover,
#facebook a:hover {
  background-color: #831c10;
  color: #c4c2bf;
  padding: 10px 40px;
}

/* Hero */
.hero {
  min-height: 90vh; /* Hero más alto */
  display: flex;
  align-items: center;
  padding-top: 0; /* no necesitamos padding, la separación se hace con la posición de la imagen */
  background-image: 
    linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.85)),
    url('../imagenes/fondo.png');
  background-repeat: no-repeat;
  background-size: 50% auto; /* Imagen un poco más grande */
  background-position: right bottom; /* Pegada a la derecha y al borde inferior */
}

.hero-inner{ display:flex; gap:40px; align-items:center; }
.hero-left{ flex:1; max-width:720px; padding:40px 0; }
.hero-left h1{ font-size: clamp(28px, 4vw, 48px); color:var(--white); line-height:1.02; margin-bottom:18px; font-weight:700;}
.lead{ color: rgba(255,255,255,0.88); margin-bottom:14px; font-size:18px;}
.hero-note{ color: rgba(255,255,255,0.7); margin-bottom:22px;}

/* Botón principal */
.btn-primary{
  display:inline-block;
  background: var(--red-main);
  color: var(--white);
  padding:14px 22px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition: background .28s ease, box-shadow .18s ease, transform .12s ease;
  box-shadow: 0 6px 18px rgba(246,58,38,0.12);
}
.btn-primary:hover{
  background:#ff4a36;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(246,58,38,0.14);
}

/* Hero derecha */
.hero-right{ flex:1; height:420px; display:flex; align-items:center; justify-content:center; }
.hero-img{ width:100%; height:100%; object-fit:cover; border-radius:12px; box-shadow: 0 12px 30px rgba(0,0,0,0.6);}

/* Secciones */
.section{ padding:64px 0; }
.section-title{ text-align:center; font-size:28px; margin-bottom:18px; color:var(--white);}
.sectionportfolio-title{ text-align:left; font-size:28px; margin-bottom:18px; color:var(--white);}
.section-contacttitle{text-align:center; font-size:40px; margin-top:20px; margin-bottom:18px; color:var(--white);}
.muted{ color: rgba(255,255,255,0.7); margin-bottom:12px;}
.center{ text-align:center;}

/* Tarjetas - Servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 18px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card h3 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 18px;
}

.card p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  flex-grow: 1;
}

/* --- Galería tipo tarjetas --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* Cada tarjeta */
.p-card {
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px; /* Todas iguales para que se vea ordenado */
  overflow: hidden; /* Evita problemas visuales pero NO corta la imagen */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Las imágenes se ajustan sin recortarse */
.p-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain; /* Esto evita recortes */
  border-radius: 8px;
}



.mini-hero-left {
  padding: 90px 0 20px; /* puedes ajustar */
}

.mini-hero-inner {
  width: 100%;         /* ocupa exactamente lo que ocupa la galería */
  max-width: var(--max-width); /* coincide con .container del sitio */
  margin: 0 auto; 
  padding-left: 0;     /* asegura alineación perfecta */
  text-align: left;
}

.mini-hero-left h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
  font-weight: 700;
}

.mini-hero-left .lead {
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
  font-size: 18px;
}

.mini-hero-left .btn-primary {
  margin-top: 6px;
}

body.portafolio-page {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.85)),
    url('../imagenes/fondo.png');
  background-repeat: no-repeat;
  background-size: 50% auto;
  background-position: right 55px; /* Ajusta aquí según lo necesites */
}




/* Precios */
.price-grid{ display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:16px;}
.price-card{ background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.03); padding:20px;border-radius:10px; width:280px; text-align:center;}
.price-card h3{ color:var(--white); margin-bottom:8px;}

/* ============================================
   NUEVOS ESTILOS PARA CONTACTO (una sola columna)
   ============================================ */

body.contacto-page {
    background-color: #000;
    background-image: none;
}

/* Contenedor general */
.contacto-contenedor {
    max-width: 700px;
    margin: 120px auto 50px auto;
    padding: 20px;
    text-align: left;
}

/* Título */
.contacto-contenedor h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

/* Información de contacto */
.contacto-info {
    margin-top: 20px;
}

.contacto-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Botón Gmail */
.boton-gmail {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 20px;
    background-color: #d44638;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.boton-gmail:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .contacto-contenedor {
        margin-top: 100px;
        padding: 15px;
    }

    .contacto-contenedor h1 {
        font-size: 1.8rem;
    }
}


/* Footer */
.site-footer{ border-top:1px solid rgba(255,255,255,0.03); padding:28px 0; text-align:center; color: rgba(255,255,255,0.7); font-size:14px;}

/* Responsive */
@media (max-width:900px){
  .hero-inner{ flex-direction:column-reverse; }
  .hero-right{ width:100%; height:320px; }
  .main-nav{ display:none; }
  .nav-inner{ justify-content:space-between; }
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .card-media img {
    height: 160px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 14px;
  }
}
/* =========================================================
   RESPONSIVE DESIGN — Bordados Tucán
   ========================================================= */

/* -------- Tablet (máximo 992px) -------- */
@media (max-width: 992px) {

  .container {
    padding: 0 24px;
  }

  .site-header .nav-inner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .main-nav a {
    font-size: 15px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-inner {
    flex-direction: column;
    text-align: left;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .hero-left .lead {
    font-size: 17px;
  }

  .gallery-masonry {
    column-count: 2;
    column-gap: 18px;
  }

  .gallery-masonry img {
    margin-bottom: 18px;
  }
}

/* Responsive */
@media (max-width:900px){

  /* --- HERO --- */
  .hero-inner{
    flex-direction: column-reverse;
  }

  .hero-right{
    width:100%;
    height:320px;
  }

  /* --- GRID DE CONTACTO --- */
  .contact-grid{
    grid-template-columns: 1fr;
  }

  /* --- MENÚ RESPONSIVO (sin cambiar HTML) --- */
  .main-nav{
    display: flex;             /* Antes se ocultaba. Ahora siempre visible. */
    gap: 12px;
    margin-left: 10px;
  }

  .main-nav a{
    font-size: 14px;           /* Más pequeño para que quepa */
    margin-left: 6px;
  }

  .nav-inner{
    justify-content: space-between;
    padding: 12px 0;
  }

  /* --- TARJETAS DE SERVICIOS --- */
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .card-media img {
    height: 160px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 14px;
  }


  /* --- GALERÍA --- */
  .gallery img{
    width: 45%;                 /* Más pequeño para celular */
    height: auto;               /* Mantiene proporción */
  }

  /* Opcional para aspecto más limpio */
  .gallery{
    gap: 10px;
  }

}
/* Fix: evitar que el menú fijo tape el contenido en páginas sin hero */

/* General para todas las páginas en móvil */
@media (max-width: 900px){

  body {
    padding-top: 95px; /* Altura del header fijo */
  }

  /* Ajustes específicos por página */

  /* Inicio: tiene hero, no necesita tanto margen */
  body.index-page {
    padding-top: 0;
  }

  /* Servicios */
  body.servicios-page .section-title {
    margin-top: 10px !important;
  }

  /* Portafolio */
  body.portafolio-page .section-title {
    margin-top: 20px !important;
  }

  /* Contacto */
  body.contacto-page .section-title {
    margin-top: 15px !important;
  }
}
@media (max-width: 900px){

  /* Servicios: baja el fondo */
  body.servicios-page {
    background-position: right 80px !important; /* Ajusta la cantidad */
  }

  /* Portafolio: baja el fondo */
  body.portafolio-page {
    background-position: right 120px !important; /* Ajusta la cantidad */
  }
}
@media (max-width: 768px) {

    body.servicios-page,
    body.portafolio-page {
        background-image: none !important; /* Quita la imagen */
        background-color: #000 !important; /* Mantén el fondo negro */
    }

}




/* Fin del stylesheet */
