/* estilos.css
   Estructura modular, variables, responsive
   Tipografías: Omnes (preferida) + Montserrat (Google)
*/

/* ---------- Variables ---------- */
:root{
    --naranja: #EB691E;
    --gris-oscuro: #1E1E1E;
    --gris-calido: #7A736C;
    --blanco: #FFFFFF;

  --max-width: 1200px;
  --container-pad: 24px;

  --radius-lg: 5rem;
  --radius-md: 14px;

  --transition: 0.22s cubic-bezier(.2,.9,.3,1);
  --card-elev: 12px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html,body{ height:100%; margin:0; font-family: "Omnes", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:var(--gris-oscuro); background:#fff; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;}
a{ color:inherit; text-decoration:none; }
.container{ width:100%; max-width:var(--max-width); margin:0 auto; padding:0 var(--container-pad); }

/* ---------- Header ---------- */
.site-header{
  background:var(--gris-oscuro);
  color:var(--blanco);
  position:sticky; top:0; z-index:1000;
  box-shadow:none;
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled{
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  background: rgba(30,30,30,0.98);
}

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.logo{ font-weight:700; letter-spacing:1px; font-size:20px; color:var(--blanco); display: inline-flex; align-items: center; }

.main-nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:28px; align-items:center; }
.main-nav a{ color:var(--blanco); font-weight:600; font-size:14px; letter-spacing:0.6px; }
.icon-instagram a{ padding-left:8px; }

/* hamburger */
.hamburger{ display:none; background:none; border:0; cursor:pointer; padding:8px; margin-left:12px; }
.hamburger span{ display:block; width:22px; height:2px; background:var(--blanco); margin:4px 0; transition: all .18s; }

/* mobile slide menu */
.mobile-menu{
  position: fixed;
  right: -100%;
  top:0; height:100vh; width:320px;
  background:var(--gris-oscuro); color:var(--blanco);
  box-shadow: -18px 0 40px rgba(0,0,0,0.45);
  padding:28px;
  transition: right 300ms cubic-bezier(.2,.9,.3,1);
  z-index:1500;
}
.mobile-menu.open{ right:0; }
.mobile-menu ul{ list-style:none; padding:0; margin-top:24px; display:flex; flex-direction:column; gap:18px; }
.close-mobile{ background:none; border:0; color:var(--blanco); font-size:20px; position:absolute; right:16px; top:16px; cursor:pointer; }

/* ---------- HERO ---------- */
.hero{
  background-image:url(../img/portada-poliamidas.png);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  padding:64px 0;
  overflow:hidden;
  margin-bottom:48px;
  background-position: center;
}
.hero-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:320px; position:relative; }
.hero-carousel{ flex:1; min-height:240px; border-radius:14px; overflow:hidden; position:relative; display:flex; align-items:center; justify-content:center; }
.slide{ width:100%; height:100%; background-size:cover; background-position:center; transition: opacity 900ms ease; opacity:0; position:absolute; inset:0; }
.slide.active{ opacity:1; position:relative; }

.hero-decor{ width:40rem; display:flex; flex-direction: row; align-items: flex-end; justify-content: space-around; padding:10px; position:relative; }
.decor-circle{ width:58px; height:58px; background-image: url(../img/logo.png); background-repeat: no-repeat; /*border-radius:50%*/; margin-bottom:12px; animation: pulse 4s infinite ease-in-out; opacity:0.98; }
@keyframes pulse { 0%{ transform:scale(1); } 50%{ transform:scale(1.06);} 100%{ transform:scale(1); } }

.hero-title{
  color:var(--blanco); font-weight:800; font-size:34px; letter-spacing:1px;padding-left: 6%;
  transform: translateX(18px); opacity:0; transition: transform .7s var(--transition), opacity .6s var(--transition);
}

/* reveal states */
.revealed { opacity:1; transform:none; transition: opacity .6s var(--transition), transform .6s var(--transition); }

/* Sección Productos */
.productos-section {
    padding: 1rem 2rem 5rem 2rem;
    background: var(--blanco);
}

.productos-title {
    font-family: 'Omnes', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--gris-oscuro);
}

.productos-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
}

/* Tarjetas */
.producto-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 25px 25px 10px 10px;
    color: var(--gris-oscuro);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.producto-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.producto-img1 {
  background-image: url(../img/servicio-servicios-poliamida.png);
  background-repeat: no-repeat;
    width: 100%;
    height: 260px;
    border-radius: 0 20px 0 0;
}

.producto-img2 {
  background-image: url(../img/servicio-servicios-integrales.png);
  background-repeat: no-repeat;
    width: 100%;
    height: 260px;
    border-radius: 0 20px 0 0;
}

.producto-img3 {
  background-image: url(../img/servicio-corrugado-tripas.png);
  background-repeat: no-repeat;
    width: 100%;
    height: 260px;
    border-radius: 0 20px 0 0;
}

.producto-card h3 {
    font-family: 'Omnes', sans-serif;
    font-size: 1.4rem;
    color: var(--gris-oscuro);
}

.producto-card p {
    font-family: 'Montserrat', sans-serif;
    color: var(--gris-oscuro);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Botón */
.productos-btn-wrapper {
    text-align: center;
    margin-top: 40px;
    font-weight: bold;
}

.btn-outline {
    padding: 12px 30px;
    border: 2px solid var(--gris-oscuro);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: var(--gris-oscuro);
    transition: transform .3s ease;
    font-weight: bold;
}

.btn-outline:hover {
    transform: scale(1.05);
}

/* Animaciones */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 992px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- DUAL Section ---------- */
.dual-section{
  background:var(--naranja);
  color:var(--blanco);
  border-top-left-radius:var(--radius-lg);
  border-top-right-radius:var(--radius-lg);
  padding:48px 0;
  margin:44px 0;
}
.dual-inner{ display:flex; gap:20px; align-items:center; justify-content:space-between; }
.dual-copy h2{ margin:0 0 6px; font-size:28px; font-weight:800; letter-spacing:1px; }
.dual-logo{ width:84px; height:84px; border-radius:12px; background:rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; font-weight:800; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--gris-oscuro); color:var(--blanco); padding:28px 0; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; }
.footer-right ul{ list-style:none; display:flex; flex-direction: column; gap:18px; margin:0; padding:0; line-height: 0.75rem;}
.footer-right a{ color:var(--blanco); font-weight:500; }

/* ---------- Floating ---------- */
.floating{
  position:fixed; right:18px; border-radius:50%; width:75px; height:75px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 26px rgba(0,0,0,0.18); z-index:1200; cursor:pointer; transition: transform .18s ease, opacity .18s ease;
}
.whatsapp{ bottom:18px; background:#3ba33b; color:#fff; }
.to-top{ bottom:100px; background:rgba(120,120,120,0.06); color:var(--gris-oscuro); font-size: 2rem; }

/* ---------- Reveal initial states ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s var(--transition), transform .6s var(--transition); }
.reveal-large{ opacity:0; transform: translateY(26px); transition: opacity .7s var(--transition), transform .7s var(--transition); }

/* ---------- Responsiveness ---------- */
@media (max-width: 1024px){
  .hero-inner{ flex-direction:column; align-items:stretch; min-height:340px; }
  .hero-decor{ width:100%; align-items:center; justify-content:center; text-align:center; }
  .hero-title{ transform:none; font-size:26px; }
  .productos-grid{ grid-template-columns: repeat(3, 1fr); gap:18px; }
  .dual-inner{ flex-direction:column; text-align:center; gap:16px; }
  .footer-inner{ flex-direction:column; gap:14px; text-align:center; }
}

@media (max-width: 768px){
  .main-nav{ display:none; }
  .hamburger{ display:block; color:var(--blanco); }
  .productos-grid{ grid-template-columns: 1fr; }
  .hero{ padding:40px 0; border-bottom-left-radius:20px; border-bottom-right-radius:20px; margin-bottom:28px; }
  .hero-carousel{ min-height:160px; }
  .hero-title{ font-size:22px; opacity:1; transform:none; }
  .floating{ right:14px; width:48px; height:48px; }
  .to-top{ bottom:78px; }
  .whatsapp{bottom:18px; }
  .mobile-menu{ width:100%;}
  .producto-card h3 {font-size: 1.8rem;}
  .producto-card p {font-size: 1.3rem;}
  #empresa {width: 90%!important;  display: flex; flex-wrap: nowrap; justify-content: center; text-align: center; flex-direction: column; align-items: center;}
}

/* utility spacing */
.section-gap{ padding:36px 0; }
.section-title{ font-size:22px; margin:0 0 12px; font-weight:700; }
#empresa p {font-size: 1.5rem; color: #fff; font-weight: bold; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);}


/*------------EMPRESA------------*/
#empresa {
    width: 80%;
    height: 17rem;
    background-image: url(../img/pie-poliamidas.png); 
    display: flex; 
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;}


 /* --- SERVICIOS PAGE --- */

.servicios-page {
    padding: 80px 20px;
}

.titulo-servicios {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.servicio-row {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.servicio-img-large {
    width: 100%;
    height: 100%;
    background: #6c6864;
    border-radius: 0 40px 0 0;
}

.servicio-info h2 {
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 700;
}

.servicio-info p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.servicios-cta {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .servicio-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}
 /* --- fin SERVICIOS PAGE --- */

/* PORTADA CONTACTO */
.portada-contacto {
  position: relative;
  width: 100%;
  height: 27vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portada-contacto video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portada-contacto .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.portada-contacto h1 {
  position: absolute;
  color: #fff;
  font-size: 3rem;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* FORMULARIO DE CONTACTO */
.contacto-wrapper {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  min-height: 700px;
}

.contacto-form {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.1);
}

.contacto-form h2 {
  margin-bottom: 20px;
  text-align: center;
}

.contacto-form label {
  display: block;
  font-size: 0.9rem;
  margin-top: 15px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-enviar {
  margin-top: 25px;
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s ease;
}

.btn-enviar:hover {
  background: #333;
}
/* fin PORTADA CONTACTO */


/*----------- EMPRESA ---------*/
.empresa-hero {
    position: relative;
    width: 100%;
    padding: 0;
}

.empresa-bg {
    position: relative;
    width: 70%;
    height: 50rem;
    overflow: hidden;
}

.empresa-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Esto reemplaza center/cover de background */
    object-position: center;
    z-index: 1;         /* Para que el video quede atrás del contenido */
}


.empresa-card {
    width: 70%;
    max-width: 850px;
    background: #fff;
    margin: -43rem auto 0;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    line-height: 1.7;
}


.empresa-card p {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Texto institucional */
.empresa-texto {
    width:100%;
    padding: 120px 25px 80px 25px;
    text-align: center;
    font-weight: 600;
    font-size: 2rem;
}

.empresa-texto p {
    font-size: 1.8rem;
    color: #222;
    line-height: 1.8;
}

.clear {clear: both;}

/* ========================= */
/*      RESPONSIVE EMPRESA   */
/* ========================= */

@media (max-width: 992px) {
    .empresa-card {
        width: 85%;
        padding: 35px;
    }

    .empresa-bg {
    position: relative;
    width: 100%;
    height: 50rem;
    overflow: hidden;
}
}

@media (max-width: 768px) {
    .empresa-card {
        width: 90%;
        padding: 25px;
    }

    .empresa-texto p {
        font-size: 1.4rem;
        padding: 0 4%;
    }
}

@media (max-width: 480px) {
    .empresa-card {
        padding: 20px;
        margin-top: -137%;
    }
}
/* fin EMPRESA*/ 