/* ==========================================================================
   Variables y Configuración Base
   ========================================================================== */
:root {
    --primary: #3AA6B9;
    --secondary: #2997AA;
    --dark: #0F172A;
    --text-color: #454F5E;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --bg-alt: #E9F8F9;
    --white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(58, 166, 185, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 166, 185, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

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

.btn-light:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

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

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.05;
    filter: blur(50px);
}

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

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(58, 166, 185, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0) scale(1.02);
}

.glass-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.glass-card .icon {
    font-size: 2rem;
    color: var(--primary);
}

.glass-card h4 {
    margin: 0;
    font-size: 1.1rem;
}

.glass-card span {
    font-size: 0.875rem;
    color: var(--text-light);
}

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

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-title {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-title h6 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.service-card:hover::before {
    height: 100%;
}

.service-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover .service-img {
    transform: scale(1.02);
}

.service-number {
    font-size: 2.5rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: rgba(58, 166, 185, 0.15);
    margin-bottom: 1rem;
    display: block;
    transition: var(--transition);
}

.service-card:hover .service-number {
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Banner CTA
   ========================================================================== */
.banner-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 5rem 0;
    color: var(--white);
}

.banner-content h6 {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.banner-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: 5rem 0;
    background: var(--bg-alt);
}

.testimonials .section-title {
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(58, 166, 185, 0.2);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 5rem 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--bg-alt);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--text-light);
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 166, 185, 0.1);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--dark);
    color: #CBD5E1;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: #CBD5E1;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--primary);
}

.footer-social {
    margin-top: 2.5rem;
}

.footer-social h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-icons a {
    color: #CBD5E1;
    transition: var(--transition);
    display: inline-block;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   About / Team Section
   ========================================================================== */
.about-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.about-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-item:last-child {
    margin-bottom: 0;
}

.about-item.reverse {
    direction: rtl;
}

.about-item.reverse > * {
    direction: ltr;
}

.about-image-wrapper {
    position: relative;
    padding: 2rem;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background-color: var(--dark);
    border-radius: var(--radius-lg);
    z-index: 1;
    overflow: hidden;
}

.about-item.reverse .bg-pattern {
    left: auto;
    right: 0;
}

.pattern-grid {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.5;
}

.circle-img {
    position: relative;
    z-index: 2;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    width: 90%;
    height: 500px;
    object-fit: cover;
    margin-left: 10%;
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--white);
    transition: var(--transition);
}

.about-item.reverse .circle-img {
    margin-left: 0;
    margin-right: 10%;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.circle-img:hover {
    transform: scale(1.02);
    border-radius: var(--radius-lg);
}

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

.about-content p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

/* ==========================================================================
   Videos Section
   ========================================================================== */
.videos-section {
    padding: 2rem 0 6rem;
    background-color: var(--white);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.video-card {
    width: 100%;
    max-width: 315px; /* Size of youtube short */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 9 / 16;
}

.video-card .video-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-card .video-link:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.video-card .video-link:hover .play-overlay {
    background: #ff0000; /* YouTube Red */
    border-color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   Video Modal
   ========================================================================== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px; /* Short videos are vertical */
    aspect-ratio: 9/16;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: modalScaleIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes modalScaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Floating Elements
   ========================================================================== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.floating-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container,
    .contact-layout,
    .footer-grid,
    .about-item {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-item.reverse {
        direction: ltr;
    }

    .circle-img, .about-item.reverse .circle-img {
        margin: 0 auto;
        width: 100%;
        height: 350px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    .nav {
        display: none;
    }
    
    .header .btn-primary {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

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

    .section-title h2,
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;



    }
}
/* Sección contenedora del Hero Video */
.hero-video-section {
  padding: 2rem 1.5rem;
  background-color: transparent;
}

/* Contenedor principal del Hero Video */
.hero-video {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: calc(100vh - 150px);
  min-height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background-color: var(--dark);
}

/* Estilos para que el video cubra todo el fondo sin deformarse */
.hero-video__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Responsivo para el Hero Video en móviles */
@media (max-width: 768px) {
  .hero-video-section {
    padding: 1rem;
  }
  
  .hero-video {
    height: auto;
    min-height: 250px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   H1 Principal SEO
   ========================================================================== */
.main-title-section {
  padding: 3rem 1.5rem 1rem;
  background-color: var(--white);
}

.main-h1 {
  font-size: 2.5rem;
  color: var(--dark);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .main-h1 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Menú Móvil
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 1rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    display: block;
}

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