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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  transition: opacity 0.2s ease;
}

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

.header {
  background: linear-gradient(135deg, #fbfcfe 0%, #ffffff 100%);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header.scrolled {
  background: rgba(0, 0, 255);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
  padding: 0.8rem 0;
}

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

.logo {
  height: 70px;
  width: auto;
  filter: none;
  transition: all 0.3s ease;
}

.header.scrolled .logo {
  filter: brightness(0) saturate(100%) invert(100%);
  height: 60px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  text-decoration: none;
  color: blue;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 6px;
}

.header.scrolled .nav-menu > li > a {
  color: #ffffff;
}

.nav-menu > li > a:hover {
  /* Changed hover color from green to black */
  color: #000000;
  background: rgba(255, 255, 255, 0.1);
}

.nav-menu > li > a.active {
  color: #000000 !important;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .nav-menu > li > a.active {
  color: #000000 !important;
}

.dropdown-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1001;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu li a:hover {
  background: rgba(0, 82, 204, 0.1);
  color: #0052cc;
  padding-left: 1.8rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cotiza-btn {
  background: linear-gradient(135deg, #0052cc 0%, #003399 100%);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.cotiza-btn:hover {
  background: linear-gradient(135deg, #003399 0%, #002266 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button,
.cta-button-large {
  background: linear-gradient(135deg, #0052cc 0%, #003399 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
}

/* Added extra spacing for CTA button to separate from text */
.cta-button-spaced {
  margin-top: 2rem;
}

.cta-section {
  margin-bottom: 50px; /* ajusta el valor a lo que necesites */
}


.cta-content {
  text-align: center; /* centra el texto */
  display: flex;
  flex-direction: column;
  align-items: center; /* centra elementos como el botón */
  justify-content: center;
  margin-bottom: 100px;
  
}

.cta-button:hover,
.cta-button-large:hover {
  background: linear-gradient(135deg, #003399 0%, #002266 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.6);
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1002;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.header.scrolled .hamburger span {
  background: #333;
}

.logo:hover {
  filter: brightness(0) saturate(100%);
}

.header.scrolled .logo:hover {
  filter: brightness(0) saturate(100%);
}

/* Enhanced responsive design with better dropdown handling */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 0.3rem;
  }

  .nav-menu > li > a {
    font-size: 0.85rem;
    padding: 0.7rem 0.8rem;
  }

  .logo {
    height: 65px;
  }
}

@media (max-width: 1024px) {
  .nav-menu > li > a {
    font-size: 0.8rem;
    padding: 0.6rem 0.7rem;
  }

  .logo {
    height: 60px;
  }

  .dropdown-menu {
    min-width: 250px;
  }

  .services-grid,
  .services-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

.service-card-preview {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.service-card-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #0052cc 0%, #003399 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card-preview:hover::before {
  transform: scaleX(1);
}

.service-card-preview:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 82, 204, 0.15);
}

.service-card-preview i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
  color: white;
  -webkit-text-fill-color: white;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.2);
}

.service-card-preview:hover i {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 82, 204, 0.3);
}

.service-card-preview h3 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card-preview p {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
}

/* Updated styles for image rows to match reference design */
.service-images-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.service-image-row {
  width: calc(33.333% - 1rem);
  min-width: 250px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-image-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Updated services-grid-preview to display 3 columns matching the images above */
.services-grid-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .service-image-row {
    width: 100%;
    min-width: auto;
  }

  .service-images-row {
    gap: 1rem;
    margin-bottom: 2rem;
  }
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 100px 0 2rem;
    gap: 0;
    z-index: 1001;
    overflow-y: auto;
    justify-content: flex-start;
  }

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

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-menu > li > a {
    color: #333 !important;
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
    background: transparent;
  }

  .nav-menu > li > a:hover {
    background: rgba(0, 82, 204, 0.1);
  }

  /* Mobile dropdown styles */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 82, 204, 0.05);
    margin-top: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 400px;
  }

  .dropdown-menu li a {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    color: #555;
  }

  .dropdown-menu li a:hover {
    padding-left: 2.5rem;
  }

  .nav-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
  }

  .navbar {
    padding: 1rem 0;
  }

  .logo {
    height: 60px;
  }

  .header.scrolled .logo {
    height: 55px;
  }

  /* Centered hero images on mobile */
  .hero {
    background-position: center !important;
  }

  .hero-video {
    object-position: center;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .intro-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat {
    min-width: auto;
  }

  .nav-actions {
    display: none;
  }

  .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);
  }

  .services-grid,
  .services-grid-new,
  .services-grid-preview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .service-button-new button {
    padding: 1.2rem 1rem;
    font-size: 0.95rem;
    min-height: auto;
    height: auto;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .service-content-new {
    padding: 1.2rem;
    min-height: auto;
  }

  .service-image-new {
    height: 200px;
  }

  .service-image-new img {
    object-position: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .proceso-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content-full {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
  }

  .contact-info-full {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .contact-form-full {
    padding: 2rem 1.5rem;
    margin: 0;
    border-radius: 15px;
  }

  .contact-form-full h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .contact-form-full > p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

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

  .button-group {
    flex-direction: column;
    gap: 1rem;
  }

  .button-group button {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-info {
    text-align: center;
  }

  .page-header {
    padding: 100px 20px 40px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

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

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  /* Responsive design for contact section */
  .contact-wrapper-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 2rem;
  }

  .contact-panel-title {
    font-size: 1.5rem;
  }

  .contact-info-item {
    gap: 1.2rem;
  }

  .contact-icon-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 50px;
  }

  .header.scrolled .logo {
    height: 45px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .hero-btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .services-grid {
    padding: 0.5rem;
  }

  .service-content {
    padding: 1rem;
  }

  .service-content h3 {
    font-size: 1rem;
    min-height: 50px;
  }

  /* Better mobile optimization for small screens */
  .logo {
    height: 60px;
  }

  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

  .whatsapp-btn,
  .submit-btn-full {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .service-card-preview,
  .benefit-card {
    padding: 1.5rem;
  }

  .stat h3 {
    font-size: 2.5rem;
  }

  .stat p {
    font-size: 1rem;
  }

  .intro-content h2,
  .services-preview h2,
  .benefits-section h2 {
    font-size: 2rem;
  }

  .intro-content p {
    font-size: 1rem;
  }

  /* Optimized form inputs and contact layout for small mobile screens */
  .contact-form-full {
    padding: 1.5rem 1rem;
    margin: 0;
  }

  .contact-info-full {
    padding: 1.5rem 1rem;
    margin: 0 0 1rem 0;
  }

  .contact-info-full h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .feedback-form {
    padding: 1.5rem 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 0.9rem;
  }

  .contact-item {
    padding: 1rem;
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .contact-item i {
    margin-top: 0;
    font-size: 1.5rem;
  }

  .contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .contact-item p {
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 1rem;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

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

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .cta-button-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .service-button-new button {
    font-size: 0.9rem;
    padding: 1rem 0.8rem;
    min-height: auto;
    line-height: 1.4;
  }

  .nav-menu > li > a {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .logo {
    height: 50px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }

  .cotiza-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Optimized for very small screens */
  .service-button-new button {
    font-size: 0.85rem;
    padding: 0.9rem 0.7rem;
    min-height: auto;
  }

  .contact-form-full {
    padding: 1.2rem 0.8rem;
    margin: 0;
  }

  .contact-info-full {
    padding: 1.2rem 0.8rem;
  }

  .contact-item {
    padding: 0.8rem;
  }
}

/* Fade in animation for service cards */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}
.service-card:nth-child(7) {
  animation-delay: 0.7s;
}
.service-card:nth-child(8) {
  animation-delay: 0.8s;
}
.service-card:nth-child(9) {
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #0052cc 0%, #003399 100%);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header h1,
.section-title,
.hero h1,
.intro h2,
.process-title,
.about-title,
.services-title {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.process h2,
.about h2,
.services h2 {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Services Full Page */
.services-full {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

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

.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #0052cc;
}

.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-content {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-content h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  min-height: 50px;
}

.service-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}


.service-btn {
  background: linear-gradient(135deg, #0052cc 0%, #003399 100%);
  color: white;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.service-btn:hover {
  background: linear-gradient(135deg, #003399 0%, #002266 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.4);
}

/* Added professional styling for "Ver Todos los Servicios" button */
.services-cta {
  text-align: center;
  margin: 3rem 0;
}

.services-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0052cc 0%, #003399 100%);
  color: white;
  text-decoration: none;
  padding: 1.1rem 3rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.services-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.services-btn:hover {
  background: linear-gradient(135deg, #003399 0%, #002266 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 82, 204, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.services-btn:active {
  transform: translateY(-1px);
}

/* Added new sections for homepage */
/* Quick Intro Section */
.quick-intro {
  padding: 5rem 0;
  background: #f8f9fa;
}

.intro-content {
  text-align: center;
}

.intro-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.intro-content p {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.intro-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  min-width: 150px;
}

.stat h3 {
  font-size: 3rem;
  color: #0052cc;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat p {
  font-size: 1rem;
  color: #666;
  font-weight: 600;
}

/* Services Preview */
.services-preview {
  padding: 5rem 0;
  background: white;
}

.services-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
  font-weight: 700;
}

.services-grid-preview {
  display: grid;
  /* Changed from 2 columns to 3 columns for even spacing of service cards */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card-preview {
  background: white;
  padding: 2rem;
}

/* Reduced margin-bottom for tighter spacing between image and text */
.service-image-card {
  margin-bottom: 1.5rem;
}

/* Service image card styles - enlarged to 500px height to show images completely without cropping */
.service-image-card img {
  width: 35%; /* más grande */
  height: auto; /* mantiene proporción */
  object-fit: cover;
  display: block;
  margin: 0 auto; /* centra la imagen */
}

/* New */

/* New professional contact section with two-column layout */
.contact-section-container {
  padding: 60px 0;
  background: #f0f2f5;
  min-height: calc(100vh - 200px);
}

.contact-wrapper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-panel {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-form-panel {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-panel-title {
  font-size: 1.8rem;
  color: #0052cc;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #0052cc;
  padding-bottom: 0.8rem;
}

/* Contact information items styling */
.contact-info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.contact-info-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-icon-circle.pink {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff5a87 100%);
}

.contact-icon-circle.purple {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.contact-icon-circle.slate {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.contact-info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-info-text p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info-text a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-text a:hover {
  color: #0052cc;
}

/* Social media section */
.social-section-contact {
  padding-top: 1.5rem;
  border-top: 2px solid #e0e0e0;
}

.social-section-contact h4 {
  color: #0052cc;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.social-icons-contact {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:nth-child(1) {
  background: #1877f2;
  color: white;
}

.social-link:nth-child(1):hover {
  background: #0a66c2;
  transform: translateY(-3px);
}

.social-link:nth-child(2) {
  background: #e4405f;
  color: white;
}

.social-link:nth-child(2):hover {
  background: #c13584;
  transform: translateY(-3px);
}

.cotiza-btn-contact {
  background: linear-gradient(135deg, #0052cc 0%, #0052cc 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
  width: 100%;
}

.cotiza-btn-contact:hover {
  background: linear-gradient(135deg, #0052cc 0%, #0052cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.contact-form-new {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-contact {
  display: flex;
  flex-direction: column;
}

.form-group-contact label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.form-group-contact input,
.form-group-contact select,
.form-group-contact textarea {
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group-contact input:focus,
.form-group-contact select:focus,
.form-group-contact textarea:focus {
  outline: none;
  background: white;
  border-color: #0052cc;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.form-group-contact textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit-contact {
  background: linear-gradient(135deg, #0052cc 0%, #0052cc 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(1, 115, 255, 0.3);
}

.btn-submit-contact:hover {
  background: linear-gradient(135deg, #0052cc 0%, #0052cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(0, 30, 255);
}

.footer-professional {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  color: #e0e6ed;
  padding: 4rem 0 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
  filter:none;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b8c4d4;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  color: #8b9cb8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: #0052cc;
  padding-left: 5px;
}

.footer-contact-item,
.footer-hours-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item i,
.footer-hours-item i {
  color: #0052cc;
  font-size: 1rem;
  margin-top: 2px;
  min-width: 18px;
}

.footer-contact-item a,
.footer-contact-item span,
.footer-hours-item span {
  color: #8b9cb8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.footer-contact-item a:hover {
  color: #0052cc;
}

.footer-emergency {
  font-size: 0.85rem;
  color: #6b7d9a;
  margin-top: 1rem;
  font-style: italic;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #8b9cb8;
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive Footer Design */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-professional {
    padding: 3rem 0 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem 2rem;
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }

  .footer-logo {
    margin: 0 auto 1rem;
  }

  .footer-contact-item,
  .footer-hours-item {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links li a:hover {
    padding-left: 0;
  }

  .footer-bottom {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 1rem 1.5rem;
  }

  .footer-logo {
    width: 120px;
  }

  .footer-heading {
    font-size: 0.95rem;
  }

  .footer-description,
  .footer-links li a,
  .footer-contact-item a,
  .footer-contact-item span,
  .footer-hours-item span {
    font-size: 0.85rem;
  }
}
