/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* <- evita que se pase abajo */
}

.logo {
    display: flex;
    align-items: center;
    gap:0 rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: #dc2626;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #dc2626;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 24px;
    height: 3px;
    background-color: #374151;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.nav-mobile.active {
    display: flex;
}

.nav-link-mobile {
    display: block;
    padding: 0.75rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: #dc2626;
}

/* Hero Section */
.hero {
    position: relative;
  	background: linear-gradient(170deg, #0d1014 40%, #556989 100%);
    color: #ffffff;
    padding: 8rem 0 6rem;
    margin-top: 0px;
}

hero-overlay {
  position: absolute;
  inset: 0;
  /* background-color: rgba(0, 0, 0, 0.5); */
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-accent {
    color: #ef4444;
}

.hero-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #b91c1c;
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1f2937;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-card {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    padding: 2rem;
    border-radius: 1rem;
}

.hero-card-inner {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.hero-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.advantages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.advantage {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
}

.advantage-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
	font-size: 18px;
}

.advantage:nth-child(1) .advantage-icon { color: #059669; }
.advantage:nth-child(2) .advantage-icon { color: #2563eb; }
.advantage:nth-child(3) .advantage-icon { color: #eab308; }
.advantage:nth-child(4) .advantage-icon { color: #7c3aed; }

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: #e8eef3;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
    justify-content: space-between; /* asegura que el botón baje */
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-red { background: linear-gradient(to bottom right, #f2c1c1, #e2e8f0); }
.product-image-blue { background: linear-gradient(to bottom right, #3b82f6, #e2e8f0); }
.product-image-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.product-image-green { background: linear-gradient(to bottom right, #10b981, #e2e8f0); }
.product-image-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.product-placeholder {
    width: 8rem;
    height: 8rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    font-size: 1.125rem;
}

.ultrasonic-icon {
    width: 3rem;
    height: 3rem;
    color: #ffffff;
}

.product-content {
    padding: 1.5rem;
	display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1rem;
	min-height: 96px; /* Ajusta esta altura según el número máximo de features */
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
    min-height: 96px; /* Ajusta esta altura según el número máximo de features */
    display: block;
    padding-left: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-features li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-card:nth-child(1) .product-features li::before { background-color: #ef4444; }
.product-card:nth-child(2) .product-features li::before { background-color: #3b82f6; }
.product-card:nth-child(3) .product-features li::before { background-color: #10b981; }
.product-card:nth-child(4) .product-features li::before { background-color: #8b5cf6; }
.product-card:nth-child(5) .product-features li::before { background-color: #f59e0b; }

.btn-product {
    width: 100%;
    color: #ffffff;
	margin-top: auto;
}

.btn-red { background-color: #dc2626; }
.btn-red:hover { background-color: #b91c1c; }

.btn-blue { background-color: #2563eb; }
.btn-blue:hover { background-color: #1d4ed8; }

.btn-purple { background-color: #7c3aed; }
.btn-purple:hover { background-color: #6d28d9; }

.btn-green { background-color: #059669; }
.btn-green:hover { background-color: #047857; }

.btn-orange { background-color: #d97706; }
.btn-orange:hover { background-color: #b45309; }

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1024px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2rem 1rem;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon i {
  font-size: 25px;
}

.service-icon-blue {
    background-color: #dbeafe;
    color: #2563eb;
}

.service-icon-green {
    background-color: #d1fae5;
    color: #059669;
}

.service-icon-purple {
    background-color: #ede9fe;
    color: #7c3aed;
}

.service-icon-red {
    background-color: #fee2e2;
    color: #dc2626;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.service-description {
    color: #6b7280;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #e8eef3;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-description {
    color: #6b7280;
    margin-bottom: 2rem;
}

.about-description p {
    margin-bottom: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
}

.about-card {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    padding: 2rem;
    border-radius: 1rem;
}

.about-card-content {
    color: #ffffff;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-card p {
    margin-bottom: 1.5rem;
}
.quote {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
}

.quote p {
    font-size: 0.875rem;
    margin-bottom: 0;
}



/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: #1f2937;
    color: #ffffff;
}

.text-white {
    color: #ffffff;
}

.text-gray {
    color: #d1d5db;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #f87171;
    flex-shrink: 0;
    margin-top: 0.25rem;
	font-size: 22px;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #d1d5db;
}

.contact-form-container {
    background-color: #374151;
    padding: 2rem;
    border-radius: 0.75rem;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #4b5563;
    border: 1px solid #6b7280;
    border-radius: 0.5rem;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ef4444;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-form {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-form:hover {
    background-color: #b91c1c;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #ef4444;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-info {
    color: #9ca3af;
}

.footer-info p {
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
@media (min-width: 1024px) {
	  .services-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		justify-content: center;
		max-width: 1024px;
		margin: 0 auto;
	  }
	}
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }
}
.form-message-box {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff; /* Blanco sólido como el botón */
  border: 1px solid transparent;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.form-error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#lightbox-content {
  background-color: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 95vw;
  max-height: 90vh;
  box-sizing: border-box;
  overflow: visible;
}


#lightbox-img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}


