/* Global Styles */
:root {
    --primary-color: #003b70;  /* Color azul oscuro */
    --secondary-color: #f18800; /* Color naranja */
    --accent-color: #e24a4f;    /* Color rojo */
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-text: #f8f9fa;
    --dark-text: #222;
    --border-color: #ddd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
:root {
  --primary-color: #003b70;
  --secondary-color: #f18800;
  --text-color: #333;
  --background-color: #f8f9fa;
}

/* ✅ Prevención global */
* {
  box-sizing: border-box;
  max-width: 100%;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}


a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.section-header p {
    font-size: 1.1rem;
    color: #777;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #00334d;
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #da7b00;
    color: #fff;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}


#header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Top bar with logo and search */
.top-bar {
    background-color: #fff;
    min-height: 60px;
    height: 60px;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
     flex-wrap: nowrap; /* ✅ Esta línea evita que el buscador se baje */
}

.logo img {
    height: 60px;
   
}

.search-bar {
  max-width: 400px; /* Puedes ajustar este valor si lo deseas */
  width: 100%;
  display: flex;
  justify-content: flex-end;
}


.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 0.9rem;
    border-right: none;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-search {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    height: 38px;
}

.btn-search:hover {
    background-color: #002a3d;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Bot贸n de categor铆as */
.btn-category {
    background-color: #f18800; /* Color naranja */
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-right: 10px;
}

.btn-category:hover {
    background-color: #d97900;
}

/* Main navigation bar */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav ul li a:hover, 
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

nav ul li a::after {
    display: none;
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.btn-lang {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 4px 8px;
    margin-right: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-contact {
    background-color: #f18800; /* Naranja */
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
     border-radius: 8px; /* 👈 Esta es la línea nueva */
}

/* Hero Section */
.hero {
    padding: 40px 0;
    margin-top: 87px; /* Altura del header: top-bar + main-nav */
    background-color: #f5f5f5;
}

/* Sector Productivo Section */
.sector-productivo {
    padding: 30px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

/* Productos Buscados Section */
.productos-buscados {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.productos-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
  .productos-grid {
    justify-content: center;
  }

  .producto-item {
    margin: 0 auto;
  }
}
/*movilparpadeo banner*/
@media (max-width: 768px) {
  .productos-grid {
    justify-content: center;
  }

  .hero-secondary-banners {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
  }

  .hero-slider-unico {
    display: block !important;
  }
}




.producto-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.producto-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.producto-popup.active {
  display: flex;
}

.popup-content {
  background: white;
  max-width: 900px;
  width: 100%;
  display: flex;
  gap: 30px;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  flex-wrap: wrap;
}

.popup-left img {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
}

.popup-thumbnails {
  display: flex;
  margin-top: 10px;
  gap: 10px;
}

.popup-thumbnails img {
  width: 60px;
  height: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
}

.popup-thumbnails img:hover {
  border-color: #003b70;
}

.popup-right {
  flex: 1;
}

.popup-right h2 {
  font-size: 1.8rem;
  color: #003b70;
  margin-bottom: 15px;
}

.popup-right p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
}

.popup-actions {
  display: flex;
  gap: 15px;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #aaa;
}

.close-popup:hover {
  color: #000;
}


.producto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.producto-img {
    height: 150px;
    background-color: transparent;
    align-items: center;
    justify-content: center;
}

.producto-info {
    padding: 15px;
}

.producto-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.descripcion-corta {
  font-size: 0.9rem;
  color: #555;
  margin-top: 5px;
}


/* Banner Slider Section */
.banner-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    background-color: #002939;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    color: #fff;
    max-width: 600px;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    max-width: 500px;
}

.banner-content .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.banner-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 41, 57, 0.8) 0%, rgba(0, 41, 57, 0.4) 100%);
    z-index: 1;
}

.banner-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.banner-dot.active {
    background-color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner-content h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .banner-slide {
        padding: 0 30px;
    }
}

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

.sector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    border-right: 1px solid #eee;
    transition: all 0.3s ease;
}
.sector-item i {
  font-size: 3rem;              /* Tama 0 9o del icono */
  color: var(--primary-color);  /* Azul institucional */
  margin-bottom: 15px;
}


.sector-item:last-child {
    border-right: none;
}

.sector-item:hover {
    background-color: #f9f9f9;
}

.sector-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.sector-item h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .sector-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .sector-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .sector-item:nth-child(odd) {
        border-right: 1px solid #eee;
    }
    
    .sector-item:nth-last-child(1),
    .sector-item:nth-last-child(2) {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .sector-grid {
        grid-template-columns: 1fr;
    }
    
    .sector-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .sector-item:last-child {
        border-bottom: none;
    }
}


}

/* Banner Principal (izquierda) */
.hero-main-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 40px;
  color: #fff;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--secondary-color);
}

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

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50px;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-slider .slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)); /* Overlay sutil */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2; /* Asegura que el texto est   encima del overlay */
}

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

.slider-nav .dot.active,
.slider-nav .dot:hover {
  background-color: #fff;
}


/* Banners Secundarios (derecha) */
.hero-secondary-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-banner {
    flex: 1;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.secondary-banner.top {
    background: linear-gradient(rgba(0, 103, 184, 0.85), rgba(0, 103, 184, 0.85)), 
                url('../images/services-bg.svg') no-repeat center center/cover;
}

.secondary-banner.bottom {
    background: linear-gradient(rgba(241, 136, 0, 0.85), rgba(241, 136, 0, 0.85)), 
                url('../images/projects-bg.svg') no-repeat center center/cover;
}

.secondary-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.secondary-banner p {
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-small:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #777;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-img {
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-info p {
    color: #777;
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 25px;
    color: #666;
}

.about-values h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-values ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.about-values ul li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text p {
    font-style: italic;
    color: #666;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -30px;
    left: -10px;
    color: #eaeaea;
    z-index: 1;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #999;
}
.testimonial {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-item p {
    color: #666;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background-color: #002939;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #aaa;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 15px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: #ddd;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles */


@media (max-width: 768px) {
  .logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.logo img {
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

    
  .hero-slider {
  position: relative;
  width: 236%;
  height: 280px;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

.hero-content {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4); /* Oscurece ligeramente */
  border-radius: 10px;
}

   .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-main-banner {
    height: auto;
    min-height: 280px;
    padding: 15px;
  }

  .hero-content {
    text-align: center;
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

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

  .hero-secondary-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .secondary-banner {
    padding: 15px;
    text-align: center;
    min-height: 160px;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  .secondary-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .secondary-banner p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .btn-small {
    font-size: 0.9rem;
    padding: 8px 14px;
    align-self: center;
    margin-top: 10px;
  }
}


@media (max-width: 576px) {
    .services-grid,
    .projects-grid,
    .testimonials-slider,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 20px 0;
        margin-top: 70px; /* Ajuste para altura del encabezado en m贸vil sin barra de categor铆as */
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .hero-main-banner {
        min-height: 250px;
    }
    
    .secondary-banner {
        min-height: 150px;
    }
    
    .secondary-banner h3 {
        font-size: 1.3rem;
    }
    
    .secondary-banner .btn-small {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .service-card,
    .project-card,
    .testimonial {
        max-width: 400px;
        margin: 0 auto;
    }
}
/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

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

.close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
}

.modal-main {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.modal-image img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
}

.modal-gallery {
  display: flex;
  gap: 10px;
}

.modal-gallery img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.modal-gallery img:hover {
  border-color: var(--primary-color);
}

.modal-description {
  flex: 1;
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.btn-email, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
}

.btn-email {
  background-color: #003b70;
}

.btn-whatsapp {
  background-color: #25d366;
}
#mainProductImage {
  width: 330px;         /* Ajusta según necesidad */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* desde aqui lo nuevo del banner */

.hero-slider-unico {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #f1f1f1;
}

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

.slide-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.slide-item.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  max-width: 800px;
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.slide-content .btn {
  background-color: #fff;
  color: #003b70;
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.slide-content .btn:hover {
  background-color: #003b70;
  color: #fff;
}

/* Estilos de fondo por slide */
.slide-content.azul {
  background: linear-gradient(rgba(0, 59, 112, 0.85), rgba(0, 59, 112, 0.85));
}

.slide-content.naranja {
  background: linear-gradient(rgba(241, 136, 0, 0.85), rgba(241, 136, 0, 0.85));
}

.slide-content.gris {
  background: linear-gradient(rgba(70, 70, 70, 0.85), rgba(70, 70, 70, 0.85));
}

/* Dots de navegación */
.slider-nav-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.slider-nav-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav-dots .dot.active {
  background-color: #fff;
}
/* desde aqui lo nuevo del banner */
/* Ocultar por defecto el slider móvil */
.mobile-only {
  display: none;
}

/* Mostrar solo en pantallas pequeñas */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .hero-secondary-banners {
    display: none; /* Oculta los banners originales en móvil */
  }

  .mobile-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }

  .mobile-slide {
    display: none;
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
    height: 200px;
    transition: opacity 0.5s ease;
  }

  .mobile-slide.active {
    display: block;
  }

  .mobile-slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .mobile-slide-content p {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .mobile-slider-nav {
    text-align: center;
    margin-top: 10px;
  }

  .mobile-slider-nav .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.5;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
  }

  .hero-main-banner {
    height: auto;
    padding-bottom: 20px;
  }

  .hero-slider {
    height: 250px;
  }

  .slide {
    height: 100%;
  }

  .hero-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Oscurece para mejor contraste de texto */
    border-radius: 10px;
    margin: 20px;
    color: white;
  }

  .hero-content h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

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

  .slider-nav {
    justify-content: center;
    padding-top: 10px;
  }
}

  .mobile-slider-nav .dot.active {
    opacity: 1;
  }
}
/* desde aqui lo nuevo del banner */


  .hero-main-banner {
    width: 100%;
    height: auto;
  }

  .hero-slider {
    height: 280px;
  }

  .slide {
    height: 100%;
    background-size: cover;
    background-position: center;
  }

  .hero-content {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    margin: 20px;
    color: #fff;
    position: relative;
    z-index: 2;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .slider-nav {
    justify-content: center;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    padding-top: 5px;
    position: absolute;
    z-index: 3;
  }
}
/* Estilos corregidos para slider móvil y banners secundarios */

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .hero-secondary-banners {
    display: none;
  }

  .mobile-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }

  .mobile-slide {
    display: none;
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
    height: auto;
    min-height: 220px;
    transition: opacity 0.5s ease;
    border-radius: 10px;
  }

  .mobile-slide.active {
    display: block;
  }

  .mobile-slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .mobile-slide-content p {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .mobile-slider-nav {
    text-align: center;
    margin-top: 10px;
  }

  .mobile-slider-nav .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.5;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
  }

  .mobile-slider-nav .dot.active {
    opacity: 1;
  }
}

/* Fin de los estilos móviles del slider */
/* ============================================
   Estilos Responsive: Ajustes críticos para móvil
   ============================================ */
@media (max-width: 768px) {
  /* Ajustar logo y top bar */
  .top-bar {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 10px 0;
    text-align: center;
  }

  .logo img {
    max-height: 60px;
    height: auto;
  }

  .search-bar {
    width: 90%;
    margin-top: 10px;
  }

  /* Ajuste general de navegación */
  nav ul {
    flex-direction: column;
    background-color: var(--primary-color);
  }

  nav ul li {
    text-align: center;
  }

  nav ul li a {
    padding: 12px;
    font-size: 1rem;
  }

  .main-nav .container {
    flex-direction: column;
  }

  /* Ajustes al hero y sliders */
  .hero {
    margin-top: 120px !important;
    padding: 20px 0;
  }

 
  

  .hero-main-banner {
    width: 100%;
    height: auto;
    padding-bottom: 20px;
  }

  .hero-slider,
  .hero-slider-unico {
    height: auto;
    max-height: 320px;
  }

  .slide,
  .slide-item {
    height: 100%;
    padding: 30px 15px;
  }

  .banner-slide,
  .banner-slider {
    height: auto;
  }

  .banner-content {
    text-align: center;
    padding: 20px;
  }

  .banner-content h2 {
    font-size: 1.5rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  /* Mostrar los banners secundarios también */
  .hero-secondary-banners {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
  }

  .secondary-banner {
    min-height: 180px;
    justify-content: center;
    text-align: center;
  }

  .secondary-banner h3 {
    font-size: 1.2rem;
  }

  .secondary-banner p {
    font-size: 1rem;
  }

  /* Ajuste de espaciado general */
  .productos-buscados,
  .sector-productivo,
  .projects,
  .services,
  .testimonials,
  .contact,
  .about {
    padding: 40px 20px !important;
  }

  /* Modal ajustado */
  .modal-content {
    padding: 20px;
    width: 95%;
  }

  .popup-content {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .popup-left img {
    max-width: 100%;
  }

  .popup-right h2 {
    font-size: 1.3rem;
  }

  .popup-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-email,
  .btn-whatsapp {
    justify-content: center;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .footer h3::after {
    margin: 0 auto;
  }
}
/* ======= MENÚ RESPONSIVE PARA MÓVIL ======= */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  .main-nav nav {
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
  }

  .main-nav nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 20px;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  nav ul li a {
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .main-nav {
    position: relative;
  }

  .main-nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    display: none;
    flex-direction: column;
    z-index: 1001;
  }

  .main-nav nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul li a {
    padding: 15px;
    font-size: 1rem;
    display: block;
    color: white;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    margin-right: 20px;
  }

  .main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }
}
/* === Ajustes Responsivos del Header y Menú Móvil (2025-04-07) === */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  gap: 10px;
}

.top-bar .logo img {
  max-width: 280px;
   /*height: auto;*/
   height:275px;
  width:170px;/* mantiene proporción */
}

.search-bar {
  flex-grow: 1;
  display: flex;
  gap: 5px;
  max-width: 100%;
}

.search-bar input {
  flex-grow: 1;
  min-width: 0;
  padding: 8px;
  font-size: 14px;
}

.btn-search {
  padding: 8px 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-bar {
    width: 100%;
  }

  .search-bar input,
  .btn-search {
    width: 100%;
  }

  .main-nav .container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .btn-lang,
  .btn-contact {
    width: 48%;
  }
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 2000;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .main-nav nav ul {
    display: none;
    flex-direction: column;
    background-color: #003b70;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  .main-nav nav ul.active {
    display: flex;
  }

  .main-nav nav ul li {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #0a4e9a;
  }
}

/*ultimos ajuste del menú móvil */
/* Menú móvil oculto por defecto */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #003b70;
  position: absolute;
  top: 100px; /* Puedes ajustar según la altura de tu header */
  width: 100%;
  left: 0;
  z-index: 1000;
  padding: 20px 0;
}

/* Mostrar menú cuando está activo */
.mobile-nav.active {
  display: flex;
}

/* Estilos de la lista */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  padding: 15px;
  border-bottom: 1px solid #ffffff33;
}

.mobile-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: block;
}
@media screen and (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .main-nav nav {
    display: block !important;
  }

  .nav-buttons {
    display: flex !important;
  }
}

/*ajuste cmapo buscar pantalla */
@media (min-width: 769px) {
  .search-bar {
    max-width: 400px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
}
/*ajuste logo */
@media (min-width: 769px) {
  .logo img {
    height: 80px !important;
  }
}

@media (min-width: 769px) {
  .logo {
    padding: 10px 10px;
  }

  .logo img {
    max-height: 40px;
    height:auto;
    width:280px;
  }

  .top-bar .container {
    align-items: center;
    height: 50px;
  }
}
/* 🔧 Corrige visibilidad por dispositivo */
.hero-main-banner {
  display: none;
}

.mobile-only {
  display: none;
}

/* ✅ Mostrar en escritorio */
@media (min-width: 769px) {
  .hero-main-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .mobile-only {
    display: none;
  }
}

/* ✅ Mostrar en móviles */
@media (max-width: 768px) {
  .hero-main-banner {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}
/* ... aquí termina todo tu CSS actual ... */

/* === AJUSTE FINAL PARA HERO GRID EN ESCRITORIO === */
@media (min-width: 769px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
  }

  .hero-main-banner {
    display: block;
    height: 100%;
  }

  .hero-slider {
    height: 100%;
  }

  .slide {
    height: 100%;
  }

  .hero-secondary-banners {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
  }

  .secondary-banner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border-radius: 10px;
    color: #fff;
    position: relative;
    overflow: hidden;
  }

  .secondary-banner h3,
  .secondary-banner p {
    z-index: 2;
    position: relative;
  }

  .secondary-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 10px;
  }
}
/* ...otros estilos anteriores */

/* ====================
   Estilos para los banners principales
   ==================== */
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
  z-index: 2;
  max-width: 500px;
  background-color: rgba(0, 0, 0, 0.4); /* puedes quitar esto si no deseas fondo oscuro */
  padding: 20px;
  border-radius: 10px;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-content span {
  color: var(--color-acento, #ffa500);
  font-weight: bold;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.hero-content .btn {
  background-color: #004080;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.hero-content .btn:hover {
  background-color: #0066cc;
}

.hero-slider,
.slide {
  border-radius: 14px;
  overflow: hidden;
}
/*formulario modal*/

/* Estilos del modal de formulario */
#formModal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex; justify-content: center; align-items: center;
}

#formModal .modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
}

#formModal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

#formModal form input,
#formModal form textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

#formModal form button {
  margin-top: 10px;
  width: 100%;
}
.cta-banner {
    background: linear-gradient(135deg, #0d2c54, #1a4b8c);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin: 60px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(13, 44, 84, 0.2);
}

.cta-banner p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-cta-banner {
    background-color: #ff6b35;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.btn-cta-banner:hover {
    background-color: #f03c02;
    transform: translateY(-2px);
}
.slider-dt {
    background-color: #f1f2f6;
    padding: 40px 0;
}
/*sliderrr dos
.slider-dt-container {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.slide-dt {
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.slide-dt.active {
    display: block;
}

.slide-dt img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-dt-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-dt-controls button {
    background-color: rgba(30, 39, 97, 0.6);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.slider-dt-controls button:hover {
    background-color: rgba(30, 39, 97, 0.9);
}*/
/* Bloque CSS limpio y optimizado sin espacio extra */
#destacados-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.producto-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%; /* Elimina el min-height innecesario y ajusta automáticamente */
  position: relative;
  overflow: hidden;
}

.producto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#destacados-home .producto-img img {
    max-height:200px !important;
    object-fit: contain;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}
#destacados-home .producto-img {
    height: 220px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-info {
  text-align: center;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.producto-categoria {
  font-size: 0.9rem;
  color: #f37021;
  margin-bottom: 0.5rem;
}

.producto-titulo {
  font-size: 1.1rem;
  color: #003366;
  margin-bottom: 0.5rem;
  min-height: 48px;
}

.producto-precio {
  font-size: 1.5rem;
  color: #003366;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.producto-acciones {
  margin-top: 0.3rem; /* Espacio justo */
  margin-bottom: 0;    /* Eliminamos espacio innecesario inferior */
}

.btn-detalles {
  background-color: #00468b;
  color: white;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-detalles:hover {
  background-color: #003366;
}

.producto-badge {
  background-color: #ff6600;
  color: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 3px;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.producto-card hr {
  display: none;
}
/* Botones cel correigidos */

@media (max-width: 768px) {
  .btn-contact {
    font-size: 0.9rem;
    padding: 8px 16px;
    width: auto;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-buttons {
    justify-content: left;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .btn-cta-banner {
    font-size: 0.95rem;
    padding: 10px 18px;
    white-space: normal;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cta-banner p {
    font-size: 1.2rem;
  }

  .cta-banner {
    padding: 30px 15px;
  }
}
/* popupmoviles tamaño*/
@media (max-width: 600px) {
  #popup-form {
    width: 90%;
    max-width: 320px;
    padding: 20px;
  }

  .popup-imagen {
    width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
  }

  #popup-form h3 {
    font-size: 16px;
  }

  #popup-form input,
  #popup-form textarea {
    font-size: 14px;
  }

  #popup-form button {
    font-size: 14px;
    padding: 10px 15px;
  }
}
