/* ========= RESET ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f0f;
    color: #ffffff;
    line-height: 1.5;
}

/* ========= HEADER ========= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 40px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: none;

}

.logo img {
  height: 100px;
  width: auto;
  background: none;
}

header nav a {
    margin: 0 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

header nav a:hover {
    opacity: 0.7;
}

.cta {
    padding: 10px 18px;
    background: #4ba3ff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.2s;
}

.cta:hover {
    background: #6ab4ff;
}

/* ========= HERO  ========= */

.hero {
    position: relative;
    height: 50vh;
    overflow: hidden;
 
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(45%);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 0;
}

.hero-content {
    position: absolute;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: white;
    padding: 0 10px;

}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 12px;
    transition: 0.2s;
}

.btn-primary {
    background: #4ba3ff;
    color: #000;
}

.btn-primary:hover {
    background: #6ab4ff;
}

.btn-secondary {
    background: #ffffff;
    color: #000;
}

.btn-secondary:hover {
    background: #e6e6e6;
}


/* ========= GENERAL SECTIONS ========= */

.section {
    padding: 110px 40px;
    max-width: 1300px;
    margin: auto;
}

.section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
}


/* ========= GRID SYSTEM ========= */

.grid {
    display: grid;
    gap: 25px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}


/* ========= CARDS ========= */

.card {
    background: #151515;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 20px;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(75, 163, 255, 0.25);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* ========= MATERIAL CARDS ========= */
.material-card {
  position: relative;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid #222;
  background: radial-gradient(circle at top left, #1f2933, #0b0b0b);
}

.materiales-subtitle {
  max-width: auto;
  margin: 0 0 40px 0;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
  text-align: left;
}

.materiales-subtitle em {
  opacity: 0.9;
  font-style: italic;
  font-size: 17px;
}


/* Colores por material */
.material-pla  { border-top: 3px solid #22c55e; }
.material-petg { border-top: 3px solid #0ea5e9; }
.material-abs  { border-top: 3px solid #f97316; }
.material-tpu  { border-top: 3px solid #a855f7; }

.material-card h3 {
  margin-bottom: 10px;
}

.material-props {
  list-style: none;
  font-size: 13px;
  margin-bottom: 12px;
}

.material-card > p{
margin: -10px 0 15px 0;
font-size: 12px;
}

.material-props li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

/* que el texto de la izquierda pueda partir línea,
   pero los bullets se queden juntos a la derecha */
.material-props .label {
  flex: 1 1 60%;
}

.material-props .rating {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 1px;
  font-size: 13px;
  color: #fde68a; /* amarillo suave */
}

/* texto tipo “Suave, muy estético” */
.material-props .rating-text {
  flex: 0 0 auto;
  text-align: right;
  font-size: 12px;
  opacity: 0.85;
}

.material-use {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 6px;
}




/* ========= TEXTO DE PRECIOS ========= */

.precios-text {
    opacity: 0.85;
    font-size: 18px;
    max-width: 600px;
}


/* ========= CTA BIG ========= */

.cta-big {
    text-align: left;
    margin-top: 35px;
}

.cta-big a {
    display: inline-block;
    padding: 16px 32px;
    background: #4ba3ff;
    color: #000;
    border-radius: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: 0.2s;
}

.cta-big a:hover {
    background: #6ab4ff;
}


/* ========= FOOTER ========= */

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #222222;
    opacity: 0.7;
    font-size: 14px;
    color: #94a3b8;             /* gris claro */
    line-height: 1.6;
}


.footer a {
  color: #e2e8f0;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer a:hover {
  color: #f97316;             /* naranja ProtoForge */
}

.footer-about {
  margin-top: 12px;
  font-size: 14px;
  color: #64748b;
}



/* ========= RESPONSIVE ========= */

@media (max-width: 768px) {
    
    header {
        padding: 14px 20px;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    }

    header nav a,header nav button {
        font-size: 14px;
    }

       .hero {
    height: 60vh;      /* <<--- CLAVE: darle altura fija en móvil */
    position: relative;
    overflow: hidden;
  }

  .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
  }

  .hero-content {
    position: absolute;     /* <<--- volvemos al comportamiento correcto */
    top: 55%;               /* <<--- ajustamos ligeramente para móvil */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 2;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1rem;
    opacity: 0.95;
  }

  .hero .pf-contact-btn {
    display: none;
  }

    .btn-primary,
    .btn-secondary {
        padding: 12px 18px;
        margin-bottom: 10px;
    }

    .section {
        padding: 80px 20px;
    }

    .section h2 {
        font-size: 28px;
    }
}

/* BOTÓN */
.pf-contact-btn {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;    /* <-- FIX */
  line-height: 1.25;  /* <-- FIX */
}

.pf-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* MODAL  EL MODAL ES LA FORMA*/
.pf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.pf-modal-content {
  background: #0f172a;
  padding: 30px;
  border-radius: 14px;
  width: 90%;
  max-width: 420px;
  color: #e2e8f0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: pop 0.2s ease;
}

@keyframes pop {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* CERRAR */
.pf-close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #94a3b8;
}

.pf-close:hover {
  color: #f97316;
}

/* FORM */
#pf-contact-form input,
#pf-contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 14px;
}

.pf-submit {
  background: #f97316;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.pf-submit:hover {
  background: #fb8a3b;
}

/* BOTÓN MAILTO */
.contact-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);

  font-size: 16px;    /* <-- FIX */
  line-height: 1.25;  /* <-- FIX */
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.32);
}


.site-credit {
  margin-top: 20px;
  opacity: 0.8;
}

.site-credit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #94a3b8;          /* gris suave */
  font-size: 14px;
  transition: 0.2s ease;
}

.site-credit a:hover {
  color: #f97316;          /* naranja ProtoForge */
  opacity: 1;
}

.credit-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: 0.2s ease;
}

.site-credit a:hover .credit-logo {
  filter: brightness(1.3);
}
