/* ==========================================================================
   RESET & VARIABLES GLOBALES
   ========================================================================== */
:root {
  --primary: #0056b3;
  --primary-dark: #003d82;
  --primary-light: #e8f2fc;
  --accent: #00a896;
  --accent-hover: #028072;
  --green-highlight: #70b000;
  --green-btn: #74b400;
  --green-btn-hover: #609600;
  --dark-slate: #0b1325;
  --dark-card: #152238;
  --text-main: #1f2937;
  --text-muted: #64748b;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
  --whatsapp-green: #25d366;
  --whatsapp-dark: #128c7e;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-soft);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN
   ========================================================================== */
.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.brand-link:hover .brand-title {
  color: var(--primary);
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--dark-slate);
  line-height: 1.2;
  transition: color 0.2s ease;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dark-slate);
}

.nav-links a {
  transition: var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-item-active {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary);
  padding: 0.3rem 0;
}

/* ==========================================================================
   HERO SECTION CON FONDO SEMITRANSPARENTE (fondohero.jpg)
   ========================================================================== */
.hero {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(10, 15, 29, 0.90) 0%, rgba(13, 27, 56, 0.87) 60%, rgba(5, 10, 22, 0.94) 100%),
    url("fondohero.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 4.5rem 0 5rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.hero-pill {
  display: inline-block;
  background-color: rgba(0, 168, 150, 0.18);
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.hero-content h1 {
  font-size: 2.65rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 92%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 168, 150, 0.45);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: var(--white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* ==========================================================================
   ESTILOS HERO-STATS
   ========================================================================== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-title-custom {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
  font-weight: 500;
}

.stat-link-wa {
  display: inline-block;
  color: #38ef7d;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
  margin-top: 0.15rem;
}

.stat-link-wa:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* ==========================================================================
   IMÁGENES DEL HERO (hero.jpg, minihero.jpg) Y TARJETAS
   ========================================================================== */
.hero-visual-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-image-frame {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  backdrop-filter: blur(8px);
}

.hero-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-img:hover {
  transform: scale(1.02);
}

.mini-hero-card {
  background: rgba(15, 25, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  backdrop-filter: blur(14px);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.mini-hero-img-box {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(0, 0, 0, 0.3);
}

.mini-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-hero-info {
  display: flex;
  flex-direction: column;
}

.mini-hero-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.mini-hero-info h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.mini-hero-info p {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

/* Sellos y Logos Institucionales */
.hero-accreditations {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.accreditation-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.logo-badge {
  background: rgba(15, 25, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.logo-badge:hover {
  background: rgba(20, 35, 65, 0.85);
  border-color: rgba(56, 239, 125, 0.45);
}

.badge-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.seal-icon {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 900;
  font-size: 0.65rem;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.badge-text strong {
  display: block;
  font-size: 0.75rem;
  color: var(--white);
  line-height: 1.1;
}

.badge-text small {
  display: block;
  font-size: 0.62rem;
  color: #94a3b8;
  line-height: 1.2;
}

/* ==========================================================================
   SECCIÓN HUB / OVERVIEW Y TARJETAS REGULARES
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.hub-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.hub-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.hub-icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.hub-card h3 {
  font-size: 1.25rem;
  color: var(--dark-slate);
  margin-bottom: 0.5rem;
}

.hub-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.hub-link-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.hub-card:hover .hub-link-text {
  color: var(--accent);
  padding-left: 4px;
}

/* ==========================================================================
   PRODUCTOS: CARDS-GRID Y PRODUCT-BOX
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.product-box:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.product-box h3 {
  font-size: 1.2rem;
  color: var(--dark-slate);
  margin-bottom: 0.65rem;
}

.product-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.15rem;
}

.product-spec {
  list-style: none;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.9rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.product-spec li {
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
}

.product-spec li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.card-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   FILA HORIZONTAL DE 4 COLUMNAS (ZÓCALOS Y ACCESORIOS) - AJUSTE ESTABLE
   ========================================================================== */
.sanitarios-row-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.sanitario-item-col {
  display: flex;
  flex-direction: column;
}

.sanitario-flip-box {
  background-color: transparent;
  width: 100%;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
}

.sanitario-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 10px;
}

.sanitario-flip-box:hover .sanitario-flip-inner,
.sanitario-flip-box.flipped .sanitario-flip-inner {
  transform: rotateY(180deg);
}

.sanitario-flip-front,
.sanitario-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sanitario-flip-front {
  background-color: #e2e8f0;
  border: 1px solid var(--border-color);
}

.sanitario-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sanitario-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(11, 19, 37, 0.85);
  color: #38ef7d;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.sanitario-flip-back {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--dark-card) 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.9rem;
  text-align: left;
}

.back-code {
  display: inline-block;
  background-color: rgba(0, 168, 150, 0.2);
  color: #38ef7d;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.sanitario-flip-back h4 {
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 700;
  margin: 0.25rem 0;
  line-height: 1.25;
}

.back-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  flex-grow: 1;
}

.back-specs-list li {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.back-specs-list li strong {
  color: var(--white);
}

.back-wa-btn {
  background-color: var(--whatsapp-green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: var(--transition);
  display: inline-block;
  align-self: center;
  margin-top: 0.4rem;
}

.back-wa-btn:hover {
  background-color: var(--whatsapp-dark);
  transform: scale(1.05);
}

.sanitario-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-top: 0.65rem;
  line-height: 1.35;
  text-align: center;
}

/* ==========================================================================
   ESTILOS PÁGINA CONTACTO (SEGÚN DISEÑO EXACTO)
   ========================================================================== */
.contact-main-section {
  padding: 4.5rem 0 5rem 0;
  background-color: #ffffff;
}

.contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-left-col {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.highlight-green {
  color: var(--green-highlight);
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-item-text p {
  font-size: 0.95rem;
  color: var(--dark-slate);
  line-height: 1.45;
  margin: 0;
}

.contact-wa-link {
  color: var(--green-highlight);
  transition: var(--transition);
}

.contact-wa-link:hover {
  text-decoration: underline;
}

/* Caja de Visita a Fábrica */
.visit-appointment-box {
  background-color: #f7fee7;
  border: 1px solid #d9f99d;
  border-left: 4px solid var(--green-highlight);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.5rem;
}

.appointment-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.appointment-content p {
  font-size: 0.88rem;
  color: #1e3a1e;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.appointment-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-highlight);
  display: inline-block;
  transition: var(--transition);
}

.appointment-link:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

/* Columna Derecha / Formulario */
.quote-form-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-group-full {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 0.6rem;
}

/* Selector de Proyecto */
.project-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-type-option {
  cursor: pointer;
}

.project-type-option input[type="radio"] {
  display: none;
}

.project-type-box {
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
  background-color: #fafafa;
}

.proj-icon {
  font-size: 1.4rem;
}

.proj-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.project-type-option input[type="radio"]:checked + .project-type-box {
  border-color: var(--green-highlight);
  background-color: #f7fee7;
  box-shadow: 0 0 0 1px var(--green-highlight);
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--green-highlight);
  box-shadow: 0 0 0 3px rgba(112, 176, 0, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit-quote {
  width: 100%;
  background-color: var(--green-btn);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(116, 180, 0, 0.35);
  margin-top: 0.5rem;
}

.btn-submit-quote:hover {
  background-color: var(--green-btn-hover);
  transform: translateY(-2px);
}

.form-footnote {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 1.25rem;
}

.form-footnote a {
  color: var(--green-highlight);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   EFECTO GIRO 180° EN 3D (FLIP CARD) PARA VENTAJAS
   ========================================================================== */
.flip-card {
  background-color: transparent;
  min-height: 360px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: 14px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.flip-card-front {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.flip-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--dark-slate);
}

.flip-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-hover-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(11, 19, 37, 0.85);
  color: #38ef7d;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.flip-front-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.flip-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.flip-front-content h3 {
  font-size: 1.18rem;
  color: var(--dark-slate);
  font-weight: 800;
  line-height: 1.3;
}

.flip-card-back {
  background: linear-gradient(145deg, #0f1a30 0%, #172a4d 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotateY(180deg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-back h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1.15rem;
  font-weight: 800;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.flip-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flip-specs-list li {
  font-size: 0.84rem;
  color: #e2e8f0;
  margin-bottom: 0.65rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.flip-specs-list li::before {
  content: "✔";
  color: #38ef7d;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ==========================================================================
   FOOTER EN 3 COLUMNAS: VALOR / PRODUCTOS / CONTACTO
   ========================================================================== */
.footer {
  background-color: var(--dark-slate);
  color: var(--white);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-link h3 {
  font-size: 1.35rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.footer-brand-link:hover h3 {
  color: var(--accent);
}

.footer-value-text {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.libro-reclamaciones-box {
  margin-top: auto;
}

.libro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.libro-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38ef7d;
  transform: translateY(-2px);
}

.libro-icon {
  font-size: 1.5rem;
}

.libro-text strong {
  display: block;
  font-size: 0.78rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.libro-text small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

.footer-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bullet-list li {
  margin-bottom: 0.75rem;
}

.footer-bullet-list a {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.footer-bullet-list a::before {
  content: "•";
  color: var(--accent);
  font-size: 1.1rem;
}

.footer-bullet-list a:hover {
  color: #38ef7d;
  transform: translateX(4px);
}

.footer-contact-block {
  margin-bottom: 1.25rem;
}

.contact-subheading {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.contact-phone-item,
.contact-email-item {
  margin-bottom: 0.4rem;
}

.contact-phone-item a {
  color: #38ef7d;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
}

.contact-phone-item a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.contact-email-item a {
  color: #cbd5e1;
  font-size: 0.84rem;
  transition: var(--transition);
  word-break: break-all;
}

.contact-email-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-quote-box {
  margin: 2.5rem auto 2rem auto;
  max-width: 780px;
  text-align: center;
  position: relative;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

.motivational-phrase {
  font-style: italic;
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
  font-weight: 500;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: #64748b;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (CSS PURO)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--whatsapp-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: var(--transition);
}

.wa-icon {
  width: 34px;
  height: 34px;
  fill: var(--white);
}

.floating-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.65);
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background-color: var(--dark-slate);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-whatsapp:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS Y MÓVILES)
   ========================================================================== */
@media (max-width: 1024px) {
  .sanitarios-row-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.75rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual-wrapper {
    max-width: 440px;
    margin: 0 auto;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-title {
    font-size: 2.2rem;
  }

  .form-row-two {
    grid-template-columns: 1fr;
  }

  .quote-form-card {
    padding: 1.5rem;
  }

  .sanitarios-row-horizontal {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .logos-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .wa-icon {
    width: 28px;
    height: 28px;
  }

  .wa-tooltip {
    display: none;
  }
}