:root {
    --primary-color: #e74c3c; 
    --secondary-color: #f39c12; 
    --accent-color: #ff6b6b; 
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}


.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 77px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}


.hero {
    height: 88vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
    overflow: hidden;
}

/* Media query para cuando el dispositivo está en orientación horizontal */
@media (orientation: landscape) {
    .hero {
        height: 120vh;
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vh;
    height: 92vh;
    min-width: 120vw;
    min-height: 120vh;
    transform: translate(-50%, -50%) scale(1.2);
    border: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.services {
    padding: 5rem 5%;
    background: var(--light-color);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
}

.about {
    padding: 5rem 5%;
    background: var(--dark-color);
    color: white;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.profile {
    padding: 5rem 5%;
    background: white;
}

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.profile-image-container {
    position: relative;
}

.profile-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-badge {
    background: var(--dark-color);
    color: white;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
}

.profile-badge ul {
    list-style: none;
    padding: 0;
}

.profile-badge li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-badge .fa-check {
    color: var(--secondary-color);
}

.profile-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.profile-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact {
    padding: 5rem 5%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('img/contact-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #c0392b;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-video {
        width: auto;
        height: 100vh;
        min-width: 200%;
        min-height: 100%;
        left: 0;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-badge {
        margin-top: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        text-align: center;
    }
    
    .service-content {
        text-align: center;
    }
    
    .service-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .partners-grid {
        justify-items: center;
    }
    
    .profile-badge {
        text-align: left;
    }
    
    .profile-text {
        text-align: center;
    }

    .partners-grid {
        grid-template-columns: 1fr !important;
    }
}

footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.parallax {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.parallax-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.parallax-base {
    transform: translateZ(0);
}

.parallax-back {
    transform: translateZ(-1px) scale(2);
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s;
    text-decoration: none !important;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none !important;
}

.partners {
  padding: 5rem 5%;
  background: white;
}

.partners h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: stretch; 
}

.partner-logo {
  text-align: center;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 10px;
  transition: all 0.3s;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partner-logo img {
  width: 100%;
  max-width: 260px;         
  aspect-ratio: 1 / 1;      
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: grayscale(100%);
  transition: all 0.3s;
  background: #222;
  border-radius: 10px;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr; 
  }
  .partner-logo img {
    max-width: 320px;            
  }
}


.hero-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vh;
    height: 112vh;
    min-width: 120vw;
    min-height: 120vh;
    transform: translate(-50%, -50%) scale(1.2);
    border: 0;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: center;
}

.services-list li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
    display: inline-block;
    margin-right: 2rem;
}

.services-list li:before {
    content: "·";
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.services-description {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    .hero h1 {
        margin-top: 100px;
    }
    }
}

.hero-video {
    -webkit-transform: translate(-50%, -50%) scale(1.2);
    transform: translate(-50%, -50%) scale(1.2);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.hero-video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e293b, #334155);
    z-index: -1;
}

@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .hero-video {
        -webkit-transform: translate3d(-50%, -50%, 0) scale(1.2);
        transform: translate3d(-50%, -50%, 0) scale(1.2);
    }
}