/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Variables de colores Marba */
:root {
  --primary-color: #003879;
  --secondary-color: #4B6584;
  --light-color: #CED4DA;
  --white-color: #ffffff;
  --black-color: #000000;
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

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

  html {
    font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font-body);
  color: var(--black-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Sections with ID for anchor navigation */
section[id] {
  scroll-margin-top: 60px;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  background-color: var(--white-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 100px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--black-color) !important;
  margin: 0 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 40px;
}

.hero-section .row {
  align-items: flex-start;
  min-height: calc(100vh - 140px);
  padding-top: 90px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-section h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.hero-section .lead {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.7;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-logo {
  max-width: 100%;
  height: auto;
  max-height: 450px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary-custom {
  background-color: var(--white-color);
  color: var(--primary-color);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 15px 40px;
  font-size: 1.05rem;
  border-radius: 50px;
  border: 2px solid var(--white-color);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary-custom {
  background-color: transparent;
  color: var(--white-color);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 15px 40px;
  font-size: 1.05rem;
  border-radius: 50px;
  border: 2px solid var(--white-color);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-secondary-custom:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

.section-subtitle {
  text-align: center;
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: var(--white-color);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e9ecef;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 56, 121, 0.15);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--white-color);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

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

.service-card p {
  color: var(--secondary-color);
  line-height: 1.8;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--white-color);
}

.about-content {
  padding: 2rem;
}

.about-content h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-features {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.about-features li {
  padding: 0.8rem 0;
  color: var(--secondary-color);
  font-size: 1.05rem;
  position: relative;
  padding-left: 2rem;
}

.about-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  min-height: 400px;
}

.about-stats {
  text-align: center;
}

.stat-item {
  margin: 2rem 0;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Process Section */
.process-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white-color);
}

.process-section .section-title {
  color: var(--white-color);
}

.process-section .section-subtitle {
  color: var(--white-color);
  opacity: 0.9;
}

.process-step {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.process-number {
  width: 80px;
  height: 80px;
  background-color: var(--white-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 0 auto 1.5rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.process-step h4 {
  color: var(--white-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--white-color);
  opacity: 0.9;
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact-info {
  background: var(--white-color);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-info h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background-color: var(--light-color);
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.3rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.contact-details h5 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: var(--secondary-color);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-details a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary-color);
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  margin-top: 2rem;
}

.cta-box h4 {
  color: var(--white-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--white-color);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.btn-cta {
  background-color: var(--white-color);
  color: var(--primary-color);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 35px;
  border-radius: 50px;
  border: 2px solid var(--white-color);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-cta:hover {
  background-color: transparent;
  color: var(--white-color);
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #002554 100%);
  color: var(--white-color);
  padding: 0;
  margin-top: 0;
}

.footer-icon {
  width: 60px;
  height: auto;
  filter: brightness(1.1);
}

.footer-brand h4 {
  color: var(--white-color);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.footer-tagline {
  color: var(--white-color);
  opacity: 0.9;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--white-color);
  opacity: 0.85;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-title {
  color: var(--white-color);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--white-color);
  opacity: 0.5;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--white-color);
  text-decoration: none;
  opacity: 0.85;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(5px);
  color: var(--light-color);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: var(--white-color);
  opacity: 0.85;
  font-size: 0.95rem;
}

.footer-contact i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
  color: var(--white-color);
  opacity: 0.9;
}

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

.footer-contact a:hover {
  color: var(--light-color);
  opacity: 1;
}

.footer-contact span {
  color: var(--white-color);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 0;
}

.footer-copyright,
.footer-legal {
  color: var(--white-color);
  opacity: 0.8;
  font-size: 0.9rem;
}

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

.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section .container {
    padding-top: 80px;
    padding-bottom: 30px;
  }

  .hero-section .row {
    min-height: calc(100vh - 110px);
    padding-top: 50px;
  }

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

  .hero-section h1 {
    font-size: 2.8rem;
  }

  .hero-section .lead {
    font-size: 1.2rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 12px 30px;
    font-size: 1rem;
    width: 100%;
    max-width: 350px;
  }

  .hero-logo {
    max-height: 300px;
    margin-top: 2rem;
  }

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

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .about-image {
    margin-top: 2rem;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-section .container {
    padding-top: 70px;
    padding-bottom: 20px;
  }

  .hero-section .row {
    min-height: calc(100vh - 90px);
    padding-top: 40px;
  }

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

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

  .hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 12px 25px;
    font-size: 0.95rem;
    width: 100%;
  }

  .hero-logo {
    max-height: 250px;
    margin-top: 2rem;
  }

  .services-section,
  .about-section,
  .process-section,
  .contact-section {
    padding: 50px 0;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Contact Form Styles */
.contact-form-row {
  display: flex;
  align-items: stretch;
}

.contact-form-row .col-lg-8,
.contact-form-row .col-lg-4 {
  display: flex;
  flex-direction: column;
}

.contact-card,
.info-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-card {
  min-height: 600px;
}

.info-box {
  min-height: 600px;
}

.urgent-project-section .contact-card {
  min-height: auto;
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #003879 0%, #4B6584 100%);
  color: white;
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0, 56, 121, 0.3);
  z-index: 9999;
  border-top: 3px solid #4B6584;
}

.cookie-title {
  font-weight: 600;
  color: white;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.4;
}

.cookie-link {
  color: #FFD700;
  text-decoration: underline;
}

.cookie-link:hover {
  color: #FFA500;
}

.cookie-buttons .btn {
  font-size: 12px;
  padding: 6px 12px;
}

.cookie-category {
  border-left: 3px solid #4B6584;
  padding-left: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  padding: 15px;
}

.cookie-category h6 {
  color: #003879;
  font-weight: 600;
}

/* Cookie Banner Animation */
.cookie-banner {
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

/* Cookie Preferences Link */
.cookie-preferences-link {
  color: #4B6584;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.cookie-preferences-link:hover {
  color: #003879;
  text-decoration: underline;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
  .cookie-banner .container {
    padding: 0 15px;
  }
  
  .cookie-buttons {
    margin-top: 10px;
    text-align: center;
  }
  
  .cookie-buttons .btn {
    margin: 2px;
    font-size: 11px;
    padding: 5px 10px;
  }
}
