/* Dropdown menu header (nuevo) */
.nav-links .dropdown {
  position: relative;
}
.nav-links .dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  white-space: nowrap;
  padding: 0 !important;
  height: auto !important;
}
.nav-links .dropdown > a .dropdown-arrow {
  font-size: 0.8em;
  margin-left: 0.3em;
  color: var(--gray);
  transition: transform 0.2s;
  display: inline-block;
}
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--white);
  min-width: 180px;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  padding: 0;
  animation: fadeInDropdown 0.25s;
}
.nav-links .dropdown:hover > .dropdown-menu,
.nav-links .dropdown:focus-within > .dropdown-menu {
  display: block;
}
.nav-links .dropdown-menu li {
  width: 100%;
}
.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 22px;
  color: var(--dark);
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
}
.nav-links .dropdown-menu a:hover {
  background: var(--red-light);
  color: var(--white);
}
@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .nav-links .dropdown-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .nav-links .dropdown-menu a {
    padding: 10px 18px;
  }
}

.collage-grid {
  column-count: 3;
  column-gap: 24px;
}
.collage-category {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 12px 24px 12px;
  position: relative;
  transition: transform 0.2s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
  break-inside: avoid;
  z-index: 1;
  margin-bottom: 24px;
}
.collage-category:hover {
  transform: scale(1.04) translateY(-8px) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(183,28,28,0.18);
  z-index: 2;
}
.collage-category h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--red-dark);
  letter-spacing: 1px;
  text-align: center;
}
.collage-category img {
  display: block;
  width: 100%;
  margin: 0 auto 10px auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  object-fit: cover;
  background: var(--gray-light);
  border: 1.5px solid var(--gray-light);
  transition: box-shadow 0.2s;
}
.collage-category img:nth-child(2) {
  margin-top: 0;
}
.collage-category img:hover {
  box-shadow: 0 6px 24px rgba(183,28,28,0.18);
}
@media (max-width: 1100px) {
  .collage-grid {
    column-count: 2;
    column-gap: 18px;
  }
}
@media (max-width: 700px) {
  .collage-grid {
    column-count: 1;
    column-gap: 0;
  }
  .collage-category {
    padding: 8px 2px 16px 2px;
    margin-bottom: 18px;
  }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #B71C1C;
  --red-dark: #7F0000;
  --red-light: #D32F2F;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --gray-light: #E0E0E0;
  --gray: #757575;
  --dark: #1A1A1A;
  --dark-soft: #2D2D2D;
  --shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark-soft);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--dark);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(183, 28, 28, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline-dark:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 4px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 50px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-logo img {
  height: 50px;
}

.navbar-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar.scrolled .nav-links a {
  color: var(--dark-soft);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--red-light);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--white);
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255, 255, 255, 0.6);
}

.section {
  padding: 100px 0;
}

.section-light {
  background: var(--off-white);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-red {
  background: var(--dark);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.section-dark .section-header .subtitle {
  color: var(--red-light);
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-icon {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.service-card-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: var(--transition);
}

.service-card:hover .service-card-icon img {
  opacity: 0.75;
  transform: scale(1.03);
}

.service-card-icon svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  stroke: var(--white);
  stroke-width: 1.5;
  fill: none;
}

.service-card-body {
  padding: 30px;
}

.service-card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-card-link {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card-link:hover {
  gap: 12px;
  color: var(--red-dark);
}

.service-card-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.about-preview {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  text-align: center;
  
}
.about-preview-text{  
  max-width: 900px;
}

.about-preview-text .subtitle {
  color: var(--red);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.about-preview-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-preview-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-feature svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  flex-shrink: 0;
}

.about-feature span {
  font-weight: 600;
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 30px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-brand .logo-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-footer img {
  height: 40px;
}

.footer-brand .logo-footer span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--red-light);
  padding-left: 8px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--red);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: #0d0d0d;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.3;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255,255,255,0.9);
}

.obra-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.obra-type.reverse {
  direction: rtl;
}

.obra-type.reverse > * {
  direction: ltr;
}

.obra-img .img-placeholder {
  width: 100%;
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
}

.obra-img .img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.obra-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.obra-text p {
  color: var(--gray);
  margin-bottom: 16px;
}

.obra-list {
  margin: 20px 0;
}

.obra-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.obra-list li svg {
  width: 20px;
  height: 20px;
  stroke: var(--red);
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.mant-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mant-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.mant-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.mant-card-header {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.mant-card-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: var(--transition);
}

.mant-card:hover .mant-card-header img {
  opacity: 0.65;
}

.mant-card-header svg {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  stroke: var(--white);
  stroke-width: 1.5;
  fill: none;
}

.mant-card-header .card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.mant-card-body {
  padding: 30px;
}

.mant-card-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
}

.mant-card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.mant-card-body ul {
  margin-bottom: 20px;
}

.mant-card-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--dark-soft);
}

.mant-card-body ul li svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--off-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--red);
  fill: none;
}

.value-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--gray-light);
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-item .timeline-content {
  flex: 1;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-item .timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 24px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--red);
}

.timeline-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--gray);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: var(--transition);
}

.contact-info-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: var(--dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

.map-section {
  height: 350px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1.1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--white) !important;
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-preview,
  .obra-type,
  .obra-type.reverse,
  .mant-services,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .obra-type.reverse {
    direction: ltr;
  }

  .section-header h2,
  .page-hero h1 {
    font-size: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    padding-left: 0;
  }

  .experience-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.product-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.product-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.product-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 2px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  height: 600px;
  width: 100%;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  height: 350px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-work-gallery {
  margin-top: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.product-work-gallery h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.work-gallery-grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
  height: 480px;
}

.work-gallery-item {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.work-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.work-gallery-item:hover img {
  transform: scale(1.03);
}

.work-gallery-item.work-gallery-video {
  flex: 0 0 270px;
}

.work-gallery-video {
  position: relative;
}

.work-gallery-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.video-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
}


.product-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.product-lead {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.product-description p {
  color: var(--gray);
  font-size: 0.98rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.product-advantages {
  margin: 30px 0;
}

.product-advantages h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.product-advantages ul {
  list-style: none;
  padding: 0;
}

.product-advantages ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--dark-soft);
}

.product-advantages ul li svg {
  width: 20px;
  height: 20px;
  stroke: var(--red);
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.product-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: var(--transition);
}

.highlight-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.highlight-icon {
  width: 48px;
  height: 48px;
  background: var(--dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
}

.highlight-icon.eco {
  background: #2E7D32;
}

.highlight-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.highlight-card p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.5;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.before-after-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 90%;
}

.before-after-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.before-after-img {
  height: 600px;
  width: 100%;
  overflow: hidden;
}

.before-after-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.before-after-card:hover .before-after-img img {
  transform: scale(1.03);
}

.before-after-label {
  padding: 14px 20px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

.pisos-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.piso-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: var(--transition);
}

.piso-service-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.piso-service-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  flex-shrink: 0;
}

.piso-service-item span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark-soft);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-content-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery-main {
    height: 500px;
  }

  .product-thumb {
    height: 200px;
  }

  .work-gallery-grid {
    height: 360px;
  }

  .work-gallery-item.work-gallery-video {
    flex: 0 0 200px;
  }

  .before-after-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .before-after-card {
    width: 100%;
  }

  .before-after-img {
    height: 350px;
  }

  .pisos-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-section {
    padding: 20px;
  }

  .product-header {
    margin-bottom: 20px;
  }

  .product-header h3 {
    font-size: 1.4rem;
  }

  .product-gallery-main {
    height: auto;
    height: 400px;
  }

  .product-gallery-thumbs {
    grid-template-columns: 1fr 1fr;
  }

  .product-thumb {
    height: 180px;
  }

  .work-gallery-grid {
    flex-direction: column;
    height: auto;
  }

  .work-gallery-item {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .work-gallery-item.work-gallery-video {
    flex: none;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 500px;
  }

  .product-work-gallery {
    padding: 20px;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .before-after-card {
    width: 100%;
  }

  .before-after-img {
    height: 350px;
  }

  .pisos-services-grid {
    grid-template-columns: 1fr;
  }

  .product-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .highlight-card {
    padding: 16px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ===========================
   Botón flotante de WhatsApp
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
