/* Fonts */
/* Fonts loaded via HTML for performance */

:root {
  /* Brand Colors */
  --primary-color: #2A7BBE;
  --primary-dark: #1e5a8d;
  --secondary-color: #324B77;
  --secondary-dark: #233555;
  --accent-color: #f79d5c;

  /* UI Colors */
  --text-main: #333333;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e9ecef;

  /* Spacing & Layout */
  --header-height: 80px;
  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--secondary-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* ================= Header & Nav ================= */
#header_sur {
  background-color: var(--primary-color) !important;
  color: var(--white);
  padding: 5px 20px;
}

#iconos i {
  font-size: 1.2rem;
  margin-left: 15px;
  color: var(--white);
  transition: opacity 0.2s;
}

#iconos i:hover {
  opacity: 0.8;
}

#menu {
  background-color: var(--white) !important;
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 1rem;
}

#menu li>a {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 15px;
}

#menu li>a:hover {
  color: var(--primary-color);
}

/* ================= Hero / Banner ================= */
.aluminio_imgBG,
.vidrio_imgBG {
  min-height: 300px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.aluminio_imgBG::before,
.vidrio_imgBG::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.aluminio_imgBG {
  background-image: url('../img/productos/fondo_aluar_modena.png');
}

.vidrio_imgBG {
  background-image: url('../img/vidrio/vidrio3.jpg');
}

.aluminio_imgBG h1,
.vidrio_imgBG h1 {
  position: relative;
  color: var(--white);
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  padding: 0 2rem;
}

/* ================= Products Grid (Gallery View) ================= */
.product-card {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 1.5rem;
  text-align: center;
}

.product-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* ================= Product Detail Page ================= */
.product-detail-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.product-detail-title {
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.product-detail-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
}

.tech-specs-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.tech-specs-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.95rem;
}

.tech-specs-list li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.typology-list {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.action-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-custom-outline {
  border: 2px solid #e74c3c;
  color: #e74c3c;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
}

.btn-custom-outline:hover {
  background-color: #e74c3c;
  color: white;
}

.btn-custom-solid {
  background-color: #e74c3c;
  color: white;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  width: 100%;
  text-align: center;
}

.btn-custom-solid:hover {
  background-color: #c0392b;
  color: white;
}

/* ================= Footer ================= */
#footer_bg {
  background: var(--secondary-color);
  color: var(--white);
  padding: 3rem 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
  display: block;
  padding: 5px 0;
}

.footer-link:hover {
  color: var(--white);
}

/* ================= Helpers ================= */
.text-justify {
  text-align: justify;
}

.bg-light-gray {
  background-color: #f1f1f1;
}

/* Fix Overlay Issue */
#bg-contactos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#seccion-contacto {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .product-detail-title {
    font-size: 1.8rem;
  }

  .aluminio_imgBG h1,
  .vidrio_imgBG h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }
}

/* ================= Floating WhatsApp Widget ================= */
.whatsapp-widget {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-float-button {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1002;
}

.whatsapp-float-button:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.whatsapp-widget-content {
  background: white;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 20px;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform-origin: bottom right;
}

.whatsapp-widget-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-widget-header {
  background-color: #00a884;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-widget-body {
  padding: 10px;
}

.whatsapp-widget-item {
  display: flex;
  align-items: center;
  padding: 10px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.whatsapp-widget-item:hover {
  background-color: #f5f5f5;
  color: #00a884;
}

.whatsapp-widget-item:last-child {
  border-bottom: none;
}

.icon-wrapper {
  width: 35px;
  height: 35px;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #00a884;
}

/* ================= Home Cards (Servicios) ================= */
.card_servicios {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: white;
  height: 100%;
  /* Ensure full height in grid */
  min-height: 250px;
}

.card_servicios:hover {
  transform: translateY(-5px);
}

.card_servicios .image-container {
  position: relative;
  width: 100%;
  height: 250px;
  /* Fixed height for consistency */
  overflow: hidden;
}

.card_servicios .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card_servicios:hover .image-container img {
  transform: scale(1.1);
}

.card_servicios .text-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.card_servicios .text-container h1 {
  font-size: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
}

.card_servicios .icon-container {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-color);
  padding: 10px 20px;
  border-top-left-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease;
}

.card_servicios .icon-container:hover {
  background: var(--primary-dark);
}

.card_servicios .icon-container img {
  width: 30px;
  height: 30px;
}

.card_servicios .icon__text h5 {
  color: white;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}