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

:root {
  --primary-red: #e30613;
  --primary-blue: #002f6c;
  --primary-yellow: #ffd500;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --dark-gray: #333333;
  --text-gray: #666666;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  /* Enhanced logo styles for better prominence */
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.05), rgba(0, 47, 108, 0.05));
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.logo:hover {
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(0, 47, 108, 0.1));
  border-color: var(--primary-red);
  box-shadow: 0 8px 25px rgba(227, 6, 19, 0.2);
  transform: translateY(-2px);
}

.logo img {
  /* Increased logo size and added glow effect */
  height: 65px;
  width: auto;
  transition: all 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 47, 108, 0.2));
}

.logo img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 15px rgba(227, 6, 19, 0.3));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-red);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-red);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 47, 108, 0.7), rgba(227, 6, 19, 0.7)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
  background: var(--primary-yellow);
  color: var(--dark-gray);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
  padding: 5rem 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 3rem;
  position: relative;
}

/* Impermeabilización Section */
.impermeabilizacion {
  background: linear-gradient(rgba(245, 245, 245, 0.95), rgba(245, 245, 245, 0.95)), url('https://via.placeholder.com/1920x1080/e0e0e0/ffffff?text=');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 0;
}

.impermeabilizacion-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.impermeabilizacion-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.impermeabilizacion-header {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.highlight-text {
  color: var(--primary-red);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.impermeabilizacion-slogan {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-top: 1rem;
}

.impermeabilizacion-expertise,
.impermeabilizacion-services-container,
.impermeabilizacion-contact {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.impermeabilizacion-subtitle {
  font-size: 1.6rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.impermeabilizacion-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.sector {
  background-color: var(--primary-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
}

.impermeabilizacion-services {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.impermeabilizacion-services li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.impermeabilizacion-services li i {
  color: var(--primary-red);
  margin-right: 0.5rem;
}

.impermeabilizacion-extra {
  font-style: italic;
  color: var(--primary-blue);
  font-weight: bold;
  margin-top: 1rem;
}

.impermeabilizacion-contact p {
  margin: 0.3rem 0;
}

.impermeabilizacion-contact a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
  .impermeabilizacion-content {
    grid-template-columns: 1fr;
  }
}


/* About Section */
.about {
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-points {
  list-style: none;
  margin-top: 2rem;
}

.about-points li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.about-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.service-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Projects Section */
.projects {
  background: var(--light-gray);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-yellow);
  margin-bottom: 1rem;
}

.benefit-item h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  background: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-red);
  margin-right: 1rem;
  width: 30px;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.submit-btn {
  background: var(--primary-red);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--primary-yellow);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-yellow);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-yellow);
  color: var(--dark-gray);
  transform: translateY(-3px);
}

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

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Adjusted logo size for mobile */
  .logo img {
    height: 55px;
  }
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .nav-container {
    padding: 1rem;
  }

  /* Further adjusted logo size for small screens */
  .logo img {
    height: 48px;
  }
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 36px;
    color: #004e66;
    margin-bottom: 10px;
}

.contact-card h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #00366c;
}

.contact-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}
