/* Font definitions
 * We self-host the Butler serif font family for headings and body text.
 * Poppins is kept as a fallback for extended character support.
 */
@font-face {
  font-family: 'Butler';
  src: url('fonts/Butler_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Butler';
  src: url('fonts/Butler_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Butler';
  src: url('fonts/Butler_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
/* Fallback Google font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');


/* Base styles */
body {
  margin: 0;
  font-family: 'Butler', 'Poppins', Arial, Helvetica, sans-serif;
  background-color: #0f1722;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: #00bcd4;
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #111a24;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav a {
  margin-left: 1rem;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff4081;
}

 .hero {
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(circle at center, rgba(0, 188, 212, 0.3), rgba(15, 23, 34, 0.9));
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.catalogo {
  padding: 3rem 2rem;
}

.catalogo h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

 .item {
  background-color: #19232e;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #233044;
  transition: transform 0.3s, box-shadow 0.3s;
}

 .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.item img {
  max-width: 100%;
  border-radius: 4px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.item p {
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

 .button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: #00bcd4;
  color: #0f1722;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

 .button:hover {
  background-color: #ff4081;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

 .button.secondary {
  background-color: transparent;
  color: #00bcd4;
  border: 2px solid #00bcd4;
}

 .button.secondary:hover {
  background-color: #00bcd4;
  color: #0f1722;
}

 .servicios {
  background-color: #111a24;
  padding: 3rem 2rem;
}

.servicios h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.servicio-item {
  margin-bottom: 1.5rem;
}

.encargos {
  padding: 3rem 2rem;
}

.encargos h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

form label {
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea,
form input[type="file"] {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  background-color: #1a1a1a;
  color: #f5f5f5;
}

form input[type="file"] {
  padding: 0.25rem;
}

form button {
  padding: 0.7rem;
  border: none;
  border-radius: 4px;
  background-color: #00bcd4;
  color: #0d0d0d;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

form button:hover {
  background-color: #ff4081;
  color: #fff;
}

/* ======= Sección de modelos externos ======= */
.externos {
  padding: 3rem 2rem;
  background-color: #111a24;
  text-align: center;
  color: #f5f5f5;
}

.externos h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.externos p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.externos a {
  color: #00bcd4;
  text-decoration: underline;
}

.externos a:hover {
  text-decoration: none;
}

/* Radio group styling for order form */
.radio-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.radio-group input[type="radio"] {
  margin-right: 0.25rem;
}

.contact-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hidden {
  display: none;
}

 .sobre {
  background-color: #111a24;
  padding: 3rem 2rem;
}

.sobre h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

 footer {
  background-color: #0f1722;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #888;
}

/* Viewer / calculator section */
.visor {
  background-color: #0f1722;
  padding: 3rem 2rem;
}

.visor h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Layout for viewer and control panel in the calculator */
.calc-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

/* Make viewer take more space on larger screens */
.calc-layout .viewer-container {
  flex: 1 1 60%;
  width: 100%;
  min-height: 400px;
}

/* Control panel styling */
.control-panel {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Align price and button in control panel */
.control-panel .price-display {
  margin-top: 1rem;
}

/* Display for object dimensions */
.dimension-display {
  /* Place a margin below rather than above since it appears at top of panel */
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #00bcd4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calc-layout {
    flex-direction: column;
  }
  .calc-layout .viewer-container,
  .calc-layout .control-panel {
    flex: 1 1 100%;
  }
}

.viewer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.viewer-controls label {
  font-weight: bold;
}

.viewer-container {
  width: 100%;
  height: 400px;
  background-color: #111a24;
  border: 1px solid #233044;
  border-radius: 6px;
}

/* Price display for cotizador */
.price-display {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: bold;
  color: #00bcd4;
}

/* Select styling for material and quality */
.viewer-controls select {
  padding: 0.4rem;
  background-color: #1a1a1a;
  border: none;
  border-radius: 4px;
  color: #f5f5f5;
  outline: none;
}

/* Styles for Printables example embeds */
details {
  margin-top: 0.5rem;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.printables-examples iframe {
  width: 100%;
  height: 380px;
  border: none;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}