:root {
  --primary: #0A7E9C;
  --primary-dark: #086577;
  --primary-light: #E8F4F8;
  --secondary: #FF6B61;
  --secondary-dark: #e5554a;
  --dark: #1B2A4A;
  --gray: #6B7A8F;
  --gray-light: #E2E8F0;
  --light: #F0F4F8;
  --white: #ffffff;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --header-h: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  height: var(--header-h);
}

header.scrolled {
  border-bottom: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: min(180px, 45vw);
  height: auto;
  transition: var(--transition);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== HERO / CAROUSEL ===== */
.hero {
  min-height: 100dvh;
  margin-top: var(--header-h);
  max-width: none;
  padding: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.carousel-container {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.7) 0%, rgba(10,126,156,0.4) 100%);
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: min(90%, 700px);
  animation: fadeInUp 1s ease;
  padding: 0.5rem;
}

.carousel-caption h3 {
  font-size: clamp(1.3rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.carousel-caption p {
  font-size: clamp(0.85rem, 2.5vw, 1.2rem);
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: clamp(1rem, 3vw, 1.5rem);
  cursor: pointer;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: var(--transition);
  width: clamp(36px, 8vw, 50px);
  height: clamp(36px, 8vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.prev:hover, .next:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: clamp(6px, 2vw, 20px); }
.next { right: clamp(6px, 2vw, 20px); }

/* ===== GENERAL SECTIONS ===== */
section {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 1.5rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

section h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark);
  position: relative;
  line-height: 1.3;
}

section h2::after {
  content: '';
  display: block;
  width: clamp(40px, 8vw, 60px);
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--gray);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.8;
  padding: 0 0.5rem;
}

/* ===== SERVICES ===== */
.services {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.service-cards {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius);
  width: min(100%, 320px);
  flex: 0 0 auto;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card img {
  width: clamp(140px, 28vw, 220px);
  height: clamp(140px, 28vw, 220px);
  object-fit: contain;
  border-radius: 16px;
  margin: 0 auto 1.5rem;
  padding: 0.5rem;
}

.card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.card p {
  color: var(--gray);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.7;
}

/* ===== PRODUCTS ===== */
.products {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.product-list {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  margin-top: 2rem;
}

.product {
  background: var(--white);
  border-radius: var(--radius);
  width: min(100%, 320px);
  flex: 0 0 auto;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  overflow: hidden;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: clamp(1rem, 2vw, 1.5rem);
  transition: var(--transition);
}

.product img {
  width: 100%;
  height: clamp(140px, 25vw, 180px);
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: clamp(0.5rem, 2vw, 1rem);
  background: var(--light);
}

.product h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.product p {
  color: var(--gray);
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 1.5rem);
  max-width: 1000px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-info {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--gray);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  word-break: break-word;
}

.contact-info-item i {
  width: clamp(36px, 8vw, 40px);
  height: clamp(36px, 8vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-icon {
  width: clamp(40px, 10vw, 45px);
  height: clamp(40px, 10vw, 45px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 10px;
  color: var(--dark);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  transition: var(--transition);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.social-icon:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: clamp(12px, 3vw, 16px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: var(--transition);
  pointer-events: none;
  z-index: 1;
}

.input-icon.textarea-icon i {
  top: clamp(16px, 3vw, 20px);
  transform: none;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: clamp(0.75rem, 2vw, 0.9rem) 1rem clamp(0.75rem, 2vw, 0.9rem) clamp(2.5rem, 8vw, 3rem);
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-family: var(--font);
  transition: var(--transition);
  background: var(--light);
  color: var(--dark);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7A8F' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: 0.85rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10,126,156,0.1);
}

.contact-form input:focus ~ i,
.contact-form textarea:focus ~ i,
.contact-form select:focus ~ i {
  color: var(--primary);
}

.contact-form button {
  width: 100%;
  padding: clamp(0.85rem, 2.5vw, 1rem);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  -webkit-tap-highlight-color: transparent;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10,126,156,0.3);
}

.contact-form button:active {
  transform: translateY(0);
}

.contact-form button i {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 145px;
  z-index: 999;
  width: clamp(48px, 10vw, 56px);
  height: clamp(48px, 10vw, 56px);
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: whatsappPulse 2s infinite;
  border: 3px solid var(--white);
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
  color: var(--white);
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); }
  100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
}

/* ===== SCROLL TO TOP ===== */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: clamp(44px, 9vw, 50px);
  height: clamp(44px, 9vw, 50px);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

#scrollToTopBtn.show {
  display: flex;
  opacity: 1;
  animation: fadeInUp 0.3s ease;
}

#scrollToTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), #054d5e);
}

/* ===== CHATBOT ===== */
#chat-button {
  position: fixed;
  bottom: 20px;
  right: 80px;
  z-index: 999;
  width: clamp(48px, 10vw, 56px);
  height: clamp(48px, 10vw, 56px);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

#chat-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

#chat-container {
  position: fixed;
  bottom: 90px;
  right: max(10px, env(safe-area-inset-right, 10px));
  width: min(calc(100vw - 20px), 340px);
  max-height: min(500px, 70dvh);
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideInRight 0.3s ease;
}

#chat-container.open {
  display: flex;
}

#chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

#chat-header i {
  font-size: clamp(1rem, 3vw, 1.2rem);
}

#chat-header .chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  opacity: 0.8;
  transition: var(--transition);
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

#chat-header .chat-close:hover {
  opacity: 1;
}

#chat-body {
  flex: 1;
  padding: 0.8rem;
  max-height: clamp(250px, 40vh, 320px);
  overflow-y: auto;
  background: #F8FAFC;
  -webkit-overflow-scrolling: touch;
}

#chat-body .bot-message,
#chat-body .user-message {
  padding: clamp(0.6rem, 1.5vw, 0.7rem) clamp(0.8rem, 2vw, 1rem);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  max-width: 88%;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  line-height: 1.5;
  animation: fadeInUp 0.2s ease;
  word-wrap: break-word;
}

#chat-body .bot-message {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--gray-light);
  border-bottom-left-radius: 4px;
  margin-right: auto;
}

#chat-body .user-message {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

#chat-body .chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.8rem;
}

.chat-option-btn {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: clamp(0.35rem, 1vw, 0.4rem) clamp(0.7rem, 2vw, 1rem);
  border-radius: 20px;
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.chat-option-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.chat-whatsapp-btn {
  background: var(--whatsapp);
  color: var(--white);
  border: none;
  padding: clamp(0.4rem, 1.2vw, 0.5rem) clamp(0.7rem, 2vw, 1rem);
  border-radius: 20px;
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.chat-whatsapp-btn:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.05);
}

#chat-input-wrapper {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid var(--gray-light);
  background: var(--white);
}

#chat-input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 25px;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  min-width: 0;
}

#chat-input:focus {
  border-color: var(--primary);
}

#send-button {
  width: clamp(38px, 9vw, 42px);
  height: clamp(38px, 9vw, 42px);
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

#send-button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem) 1rem;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

footer p {
  margin: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeEffect {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade {
  animation: fadeEffect 1s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TABLET (576px+) ===== */
@media (min-width: 576px) {
  nav {
    padding: 0 1.5rem;
  }

  .logo img {
    width: min(200px, 35vw);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .contact-wrapper {
    gap: 2rem;
  }

  #chat-container {
    right: 20px;
    width: 340px;
  }
}

/* ===== TABLET / SMALL DESKTOP (768px+) ===== */
@media (min-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .logo img {
    width: 220px;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.5rem 1.2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
  }

  section {
    padding: 5rem 2rem;
  }

  .card, .product {
    width: 320px;
  }
}

/* ===== DESKTOP (992px+) ===== */
@media (min-width: 992px) {
  nav {
    padding: 0 2rem;
  }

  section {
    padding: 5rem 2rem;
  }
}

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
  section {
    padding: 5rem 0;
  }

  .contact-form {
    padding: 2.5rem;
  }
}

/* ===== MOBILE ONLY (below 576px) ===== */
@media (max-width: 575px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--gray-light);
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    width: 100%;
  }

  .whatsapp-float {
    right: 130px;
  }

  #chat-button {
    right: 70px;
  }

  .contact-form button {
    padding: 0.9rem;
  }
}

/* ===== VERY SMALL SCREENS (under 360px) ===== */
@media (max-width: 359px) {
  .logo img {
    width: 120px;
  }

  .whatsapp-float {
    right: 120px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    bottom: 15px;
  }

  #chat-button {
    right: 64px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
    bottom: 15px;
  }

  #scrollToTopBtn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    bottom: 15px;
    right: 15px;
  }

  .carousel-caption h3 {
    font-size: 1.1rem;
  }

  .carousel-caption p {
    font-size: 0.75rem;
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 120dvh;
  }

  .carousel-container {
    min-height: 120dvh;
  }

  .carousel-caption h3 {
    font-size: clamp(1rem, 4vw, 1.8rem);
  }

  .carousel-caption p {
    font-size: clamp(0.7rem, 2vw, 1rem);
  }

  #chat-container {
    max-height: 80dvh;
  }

  #chat-body {
    max-height: 50dvh;
  }
}

/* ===== PRINT ===== */
@media print {
  .whatsapp-float,
  #chat-button,
  #chat-container,
  #scrollToTopBtn,
  .hamburger {
    display: none !important;
  }

  header {
    position: relative;
    border-bottom: 1px solid var(--gray-light);
  }
}
