

:root {
  --primary: #4d45d3;     
  --secondary: #FF6584;    
  --accent: #4ECDC4;       
  --dark: #2D2D41;        
  --light: #F7F7FD;       
  --text-dark: #333333;  
  --text-light: #FFFFFF;   
  --gradient: linear-gradient(45deg, #00dfe3, #8b91ff, #c15dd5);
}

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

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
.logo img {
width: 82px;
}

.logo span {color: #ffffff;text-transform: uppercase;font-size: 13pt;display: block;width: 90px;margin: 0 0 0 4px;line-height: 1.1;} 
@keyframes fadeIn {
  from {opacity: 0;transform: translateY(50px);}
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-11px); }
  100% { transform: translateY(0px); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
 
header {
  background: linear-gradient(100deg, #2b3f65, #3e4292, #0b4a77, #4f165b);
  color: var(--text-light);
  padding: 0.4rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  max-width: 211px;
  flex-direction: row;
  align-content: center;
}

.logo i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: var(--text-light);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-size: cover;
  background-position: center;
  bottom: 0;
  opacity: 1;
  background-image: url(../images/fondo2.png);
  background-attachment: fixed;
}

.hero-content {
  max-width: 509px;
  animation: fadeIn 1s ease;
  z-index: 11;
  display: block;
  position: relative;
  left: -33%;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 3px 1px 4px #091b644a;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 3px 1px 4px #071447b3;
  font-weight: 600;
}

.hero-image {
  position: absolute;
  right: 7%;
  width: 45%;
  top: 11%;
  z-index: 1;
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

/* Secciones */
.section {
  padding: 5rem 0;
}
.btns a {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1rem 3rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

.btns {
  margin: 4em 0 0 0;
  text-align: center;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
video.w-100 {
    position: absolute;
    width: 360px;
    max-width: 360px;
    top: 44px;
    right: 16%;
    border-radius: 9px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-dark);
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Servicios */
.services {
  background-color: white;
  background-image: url(../images/fondo.jpg);
  background-size: cover;
  background-attachment: fixed;
}

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

.service-card {
  background: #ffffff45;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgb(68 103 174 / 26%);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(108, 99, 255, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(81deg, #ffb407, #ff7600, #fa2df7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 4rem;
  color: white;
}

.service-card h3 {
  margin: 1rem 0;
  color: var(--dark);
}

.service-card p {
  color: #777;
  font-size: 0.95rem;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 362px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(#50046400, #5004647d, rgb(19 7 94 / 90%));
  padding: 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  margin-bottom: 0.5rem;
}

/* CTA */
.cta {
  background: linear-gradient(45deg, #c79c1a, #a63b19, #a1166b);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 0;
  border-radius: 0;
  /* position: relative; */
  overflow: auto;
  display: block;
  unicode-bidi: normal;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiPjxwYXRoIGQ9Ik04NTAgMjUwSDcwMEw1NTAgMTAwTDQwMCAyNTBIMjUwTDEwMCA0MDBWNTUwTDI1MCA3MDBINDAwTDU1MCA4NTBMNzAwIDcwMEg4NTBMMTAwMCA1NTBWNDAwTDg1MCAyNTBaIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIgc3Ryb2tlLXdpZHRoPSI1Ii8+PC9zdmc+') repeat; */
  opacity: 0.1;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Ubicación */
.location {
  background-color: white;
}

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

.location-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.location-info p {
  margin-bottom: 1rem;
}

.location-details {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
}

.location-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.location-icon i {
  color: white;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contacto */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding-right: 2rem;
}

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

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-text h4 {
  margin-bottom: 0.2rem;
}

.contact-text p, .contact-text a {
  color: #777;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.social-link {
  width: 40px;
  height: 40px;
  background: #f1f1f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-3px);
}

/* Formulario */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

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

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-control::placeholder {
  color: #aaa;
}

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

/* Botones */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

.btn:hover {
  background: #5952e4;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.btn-secondary {
  background: var(--secondary);
}

.btn-secondary:hover {
  background: #ff4f72;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: #3dbbaa;
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
 
footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #00e2ff;
}

.footer-col p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a i {
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: #FFC107;
  transform: translateX(5px);
}

.footer-newsletter .form-group {
  display: flex;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
  background: #09aaff;
  color: white;
  border: none;
  padding: 0 1rem;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

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

.footer-bottom p {
  opacity: 0.7;
}
 
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  max-width: 800px;
  width: 100%;
  position: relative;
}

.modal-image {
  width: 100%;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-prev {
  left: -25px;
}

.modal-next {
  right: -25px;
}
.service-icon i img {max-width: 85%;} 
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
 
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}


.video-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
}

.control-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.gallery-item video#heroVideo {
  max-height: 100%;
  display: block;
  margin: auto;
  position: relative;
  text-align: center;
  right: auto;
  top: 0;
  background: #d3d2d8;
      z-index:0
}




/* Media Queries */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-image {
    width: 40%;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-links li {
    margin: 1rem 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 0;
    min-height: auto;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 3rem;
  }
  
  .hero-image {
    position: relative;
    width: 80%;
    right: auto;
  }
  
  .location-container, .contact-container {
    grid-template-columns: 1fr;
  }
  
  .location-info, .contact-info {
    order: 1;
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }
  .hero-content {
    left: auto;
}

.hero {
    min-height: 884px;
}

video.w-100 {
    top: 7px;
    right: auto;
    position: relative;
    max-width: 276px;
}
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
