:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
  height: 100%;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

body.no-flex {
  display: block;
  min-height: auto;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header {
  position: relative;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.nav-logo {
  display: contents;
}

.nav-logo img {
  height: 70px;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 3px 0;
  transition: all 0.3s ease;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  display: block;
}

.nav-menu li a:hover {
  color: var(--primary-color);
}

/* Estilos para menús desplegables */
.dropdown {
  position: relative;
}

/*  INICIO CAMBIOS PARA RENDERIZACION DE PRODUCTOS EN MOVIL */
.dropdown > a::after {
  content: none;
}

.dropdown-sub > a::after {
  content: none;
}

.nav-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-link-wrapper a {
  flex-grow: 1;
}

.dropdown-toggle-arrow {
  padding: 0 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-dark);
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Make arrow bigger touch target on mobile */
@media (max-width: 768px) {
  .dropdown-toggle-arrow {
    padding: 1rem; /* Increase hit area */
    font-size: 1.2rem;
  }
}
/* FIN CAMBIOS PARA RENDERIZACION DE PRODUCTOS EN MOVIL */

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 300px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  border-radius: 4px;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-sub {
  position: relative;
}

.dropdown-sub > a {
  position: relative;
  padding-right: 2rem;
}

.dropdown-sub > a::after {
  content: none;
}

.dropdown-sub.no-submenu > a::after {
  content: '';
}
.dropdown-sub:hover > .submenu-sub {
  display: block;
}

.submenu-sub {
  display: none;
  position: absolute;
  top: 0;
  left: 100%; /* aparece a la derecha del subitem */
  background-color: var(--white);
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  z-index: 1002;
}

.submenu-sub li {
  padding: 0;
}

.submenu-sub a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.submenu-sub a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

main {
  margin-top: 0;
  flex: 1;  /* Hace que main ocupe el espacio restante, empujando el footer abajo */
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none; /* Evita que slides invisibles capturen clicks */
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto; /* Solo el slide activo puede recibir clicks */
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-md);
  box-sizing: border-box;
}

.carousel-overlay h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-overlay p {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent; /* sin fondo, sólo la flecha */
  border: none;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.08s ease;
  z-index: 10;
  color: rgba(255,255,255,0.95); /* flecha visible sobre la imagen */
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.carousel-nav:hover {
  color: var(--primary-color);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: var(--white);
}

.about-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.about-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-text p {
  margin-bottom: var(--spacing-sm);
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}

.services-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.services-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-card h3 {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1.3rem;
  color: var(--text-dark);
}

.service-divider {
  height: 2px;
  background-color: #d1d5db;
  margin: 0 var(--spacing-md);
}

.service-card p {
  padding: var(--spacing-sm) var(--spacing-md);
  flex-grow: 1;
}

.service-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  margin: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.service-button:hover {
  background-color: var(--secondary-color);
}

.gallery-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.gallery-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.gallery-carousel {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: var(--spacing-md);
  transition: transform 0.3s ease;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 1.33rem);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 1.5rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

  .hero-background {
    position: relative;
    height: 400px;
    background-image: url('../assests/imagenes/LOGO RPM FONDO TRANSPARENTE.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-background h2 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-background h3 {
  font-size: 1.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.map-section {
  padding: var(--spacing-xl) 0;
}

.map-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.footer {
  background-color: var(--text-dark);
  color: var(--white);
}

.footer-contact {
  padding: var(--spacing-lg) 0;
}

.footer-contact .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Simple, mobile-first layout for office + map */
.contact-columns {
  display: flex;
  flex-direction: column; /* mobile: stacked */
  gap: var(--spacing-md);
  align-items: center;
  justify-content: center;
}

.contact-info {
  flex: none;
  padding: 0;
}

.contact-map {
  width: 100%;
}

.contact-map .map-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.contact-map .map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Tablet and up: side-by-side with balanced proportions */
@media (min-width: 768px) {
  .contact-columns {
    flex-direction: row;
    align-items: center;
  }

  .contact-info { flex: 1 1 40%; min-width: 240px; }
  .contact-map { flex: 1 1 60%; min-width: 320px; }

  .contact-map .map-container { aspect-ratio: 4 / 1; min-height: 320px; }
}

/* Laptop and desktop: wider landscape map */
@media (min-width: 1024px) {
  .contact-info { flex-basis: 38%; }
  .contact-map { flex-basis: 62%; }
  .contact-map .map-container { aspect-ratio: 5 / 1; min-height: 340px; }
}

.contact-group h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.contact-item {
  margin-bottom: var(--spacing-sm);
  color: #d1d5db;
  line-height: 1.8;
}

.contact-item strong {
  color: var(--white);
  display: inline-block;
  min-width: 100px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-logo img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

.footer-copyright {
  background-color: #111827;
  padding: var(--spacing-md) 0;
  text-align: center;
}

.footer-copyright p {
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    flex: 0 0 calc(50% - 1rem);
  }

  .contact-columns {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    order: -1;
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 1000;
  }

  body {
    padding-top: var(--header-height);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md) 0;
    transition: left 0.3s ease;
    gap: 0;
    max-height: calc(100vh - var(--header-height));/*La navbar ocupa máximo la altura de la pantalla menos la altura del header*/
    overflow-y: auto;/*Permite scroll interno dentro de la navbar*/
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li a {
    padding: 1rem var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background-color: var(--bg-light);
    margin: 0;
    z-index: auto;
  }

  .dropdown-menu li a {
    padding: 0.75rem 2.5rem;
    font-size: 0.95rem;
  }

  .dropdown-menu .dropdown-menu {
    position: static;
    background-color: #f3f4f6;
    box-shadow: none;
    display: none;
  }

  .dropdown-menu .dropdown-menu li a {
    padding: 0.6rem 3.5rem;
    font-size: 0.9rem;
  }

  .submenu-sub {
    position: static;
    background-color: #f3f4f6;
    box-shadow: none;
    margin: 0;
    padding: 0;
    top: auto;
    left: auto;
    border-radius: 0;
    overflow: visible;
    display: none;
  }

  .submenu-sub li {
    padding: 0;
  }

  .submenu-sub a {
    padding: 0.6rem 3.5rem;
    font-size: 0.9rem;
  }

  .submenu-sub.show {
    display: block;
  }

  .dropdown > a::after {
    content: none;
  }

  .dropdown > .dropdown-menu .dropdown > a::after {
    float: none;
    margin-right: 0;
    content: none;
  }
  main {
    margin-top: 0;
  }

  .hero-carousel {
    height: 400px;
  }

  .carousel-overlay h1 {
    font-size: 2rem;
  }

  .carousel-overlay p {
    font-size: 1.2rem;
  }

  .carousel-nav {
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
  }

  .carousel-nav.prev {
    left: 10px;
  }

  .carousel-nav.next {
    right: 10px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    flex: 0 0 100%;
  }

  .gallery-carousel-container {
    padding: 0 50px;
  }

  .hero-background h2 {
    font-size: 2rem;
  }

  .hero-background h3 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .carousel-overlay h1 {
    font-size: 1.5rem;
  }

  .carousel-overlay p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
}
/*CONTENT PAGES (SERVICIOS, RECURSOS, VLM)*/

.content-page { padding: var(--spacing-lg) 0; }
.content-header { margin-bottom: var(--spacing-md); }
.content-title { font-size: 2rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.content-header .lead { margin-bottom: 0.5rem; }
.content-columns { display: grid; grid-template-columns: 1fr 320px; gap: var(--spacing-md); align-items: start; }
.content-text p { margin-bottom: 0.9rem; color: var(--text-dark); line-height: 1.75; }
.content-aside { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; box-shadow: 0 6px 18px rgba(15,23,42,0.03); }
.content-list { list-style: none; padding: 0; margin: 0; }
.content-list li { padding: 0.45rem 0; border-bottom: 1px dashed var(--border-color); color: var(--text-dark); }
.content-list li:last-child { border-bottom: none; }

@media (max-width: 1024px) { .content-columns { grid-template-columns: 1fr 280px; } }
@media (max-width: 768px) { .content-columns { grid-template-columns: 1fr; } .content-aside { order: 2; } .content-text { order: 1; } }

/*FORM LAYOUT*/
.form-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}
/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-left: 4px solid rgba(0,0,0,0.06);
}

.alert-success {
    /* Verde (success) coherente con la paleta */
    background-color: rgba(16, 185, 129, 0.08); /* emerald-400 @ 8% */
    color: #059669; /* emerald-600 */
    border-left-color: #059669;
}

/* Fade out animation for alerts */
.alert {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.alert.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

.alert .close-btn {
    float: right;
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: currentColor;
    cursor: pointer;
    line-height: 1;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Inputs */
.form-input,
.form-select,
.form-textarea {
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--white);
    color: var(--text-dark);
}

.form-textarea {
    resize: vertical;
}

/* Focus */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

/* Errors */
.form-error {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #dc2626;
}

/* Button */
.btn-submit {
    margin-top: 0.5rem;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.08s ease;
    box-shadow: 0 6px 18px rgba(37,99,235,0.12);
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}
/*PRODUCTS Y CATEGORY STYLES*/
/* Product / Category styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15,23,42,0.03);
    display: flex;
    flex-direction: column;
}
.product-image img { width: 100%; height: 300px; object-fit: cover; display: block; }
.product-grid .product-image img { height: 300px; }
@media (min-width: 768px) {
  .product-grid .product-image img { height: 400px; }
}
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-title { font-size: 1.1rem; margin: 0 0 0.25rem 0; color: var(--text-dark); }
.product-title a { color: inherit; text-decoration: none; }
.product-description { font-size: 0.95rem; flex: 1; }
.btn { display: inline-block; padding: 0.6rem 1rem; border-radius: 6px; background: var(--primary-color); color: var(--white); text-decoration: none; font-weight: 600; transition: background-color 0.18s ease; }
.btn:hover { background: var(--secondary-color);color:var(--white) ; }
.btn-outline { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); }

.product-detail { display: flex; gap: 2rem; margin: var(--spacing-lg) 0; align-items: flex-start; }
.product-media img { width: 420px; max-width: 100%; border-radius: 8px; box-shadow: 0 6px 18px rgba(15,23,42,0.04); }
.product-info { flex: 1; }
.product-features ul { list-style: disc; padding-left: 1.2rem; margin-top: 0.6rem; }
.no-items { color: var(--text-light); }

@media (min-width: 768px) {  /* Tablets y arriba */
 .product-image img {
    height: 400px;
  }
} 

 @media (min-width: 1024px) {  /*Desktop */
 .product-image img {
    height: 500px;  /* Más altura para mostrar más imagen */
  } 
 }
/* Minimal, clean feature list */
.product-features.clean-list { list-style: none; padding: 0; margin-top: 0.8rem; }
.product-features.clean-list .feature-item { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.product-features.clean-list .feature-item::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary-color); font-weight: 700; }

/* Actions */
.product-actions { display: flex; gap: 0.75rem; margin-top: 1rem; align-items: center; }

@media (max-width: 768px) {
  .product-detail { flex-direction: column; }
  .product-media img { width: 100%; }
  .product-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-detail { flex-direction: column; }
  .product-media img { width: 100%; }
}


/* Flash messages container */
.flash-messages.container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* When container is empty, collapse vertical margin */
.flash-messages.container.empty {
    margin: 0 auto;
    transition: margin 0.3s ease, padding 0.3s ease;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .form-container { margin: 2rem 1rem; padding: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
}

@media(width:768px){
  .form-container{
    margin: 4rem auto;
    padding: 2rem;
  }
}

/* --- Nuevos Estilos para Botones de Noticias (Home) --- */
.news-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
  margin-top: auto; /* Empuja los botones al fondo si el contenedor es flex column */
}

/* Base común para botones de noticias (para asegurar mismo font y tamaño) */
.news-btn {
  display: inline-block;
  font-family: inherit; /* Hereda la fuente del body (Segoe UI, etc.) */
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid transparent; /* Reserva espacio para borde */
  line-height: 1.5;
}

/* Botón "Leer más" (Primario) */
.news-btn-read {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Hover solicitado: Fondo transparente */
.news-btn-read:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* Botón "Ver noticias" (Outline) */
.news-btn-view {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.news-btn-view:hover {
  background-color: var(--primary-color);
  color: var(--white);
}
