:root {
      --primary: #423932;
      --primary-dark: #2c241e;
      --secondary: #f49531;
      --accent: #644d3a;
      --light: #ffb04c;
      --dark: #111827;
      --gray: #6b7280;
      --light-gray: #ffc068;
      --footer-bg: #423932;
      --whatsapp: #25D366;
      --call-to-action-bg: #f0f9ff;
      --call-to-action-border: #bae6fd;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: #f5f7fa;
      color: var(--dark);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Loading Spinner */
    .loading-spinner {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--light);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .loading-spinner.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .spinner {
      width: 50px;
      height: 50px;
      border: 5px solid rgba(66, 57, 50, 0.2);
      border-top: 5px solid var(--primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* WhatsApp Floating Button */
    .whatsapp-float {
      position: fixed;
      width: 60px;
      height: 60px;
      bottom: 30px;
      right: 30px;
      background-color: var(--whatsapp);
      color: white;
      border-radius: 50px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
      z-index: 1000;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 28px;
      transition: transform 0.3s, box-shadow 0.3s;
      animation: pulse 2s infinite;
    }

    .whatsapp-float:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
      animation: none;
    }

    @keyframes pulse {
      0% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
      50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7); }
      100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    }

    /* Header */
    header {
      background: var(--light);
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      padding: 1rem 2rem;
      position: relative;
    }

    .header-top {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .logo-placeholder {
      width: 120px;
      height: 60px;
 
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
      margin-bottom: 0.75rem;
      border-radius: 6px;
      transition: transform 0.3s ease;
    }

    .logo-placeholder:hover {
      transform: scale(1.05);
    }

    .header-top h1 {
      font-size: 1.8rem;
      font-weight: 800;
      color: white;
    }

    .header-top p {
      margin-top: 0.25rem;
      font-size: 1rem;
      color: white;
    }

    .contact-info {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.5rem;
      margin-top: 0.75rem;
      font-size: 0.95rem;
    }

    .contact-info i {
      margin-right: 0.4rem;
      color: white;
    }

    /* Navigation */
    .navbar {
      background: var(--light);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
      transition: all 0.3s ease;
    }

    .navbar.scrolled {
      padding: 0.2rem 0;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .nav-menu {
      display: flex;
      list-style: none;
      justify-content: center;
      align-items: center;
      padding: 0.8rem 0;
      margin: 0;
    }

    .nav-menu li {
      margin: 0 0.75rem;
    }

    .nav-menu a {
      text-decoration: none;
      color: var(--dark);
      font-weight: 600;
      font-size: 1.05rem;
      padding: 0.5rem 0;
      position: relative;
      transition: color 0.3s ease;
    }

    .nav-menu a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--secondary);
      transition: width 0.3s ease;
    }

    .nav-menu a:hover {
      color: white;
    }

    .nav-menu a:hover::after {
      width: 100%;
    }

    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      padding: 0.5rem;
      z-index: 1001;
    }

    .hamburger span {
      width: 25px;
      height: 3px;
      background: var(--dark);
      margin: 3px 0;
      transition: 0.3s;
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Active section highlighting */
    .nav-menu a.active {
      color: white;
    }

    .nav-menu a.active::after {
      width: 100%;
    }

    /* Slider mejorado */
    .hero-slider {
      position: relative;
      height: 500px;
      overflow: hidden;
      transform: translateZ(0);
      will-change: transform;
    }

    .slides {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease-in-out;
      background-size: cover;
      background-position: center;
      /* Eliminamos background-attachment: fixed para evitar problemas de rendimiento */
      /* Añadimos para mejorar calidad de imagen */
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
    }

    .slide.active {
      opacity: 1;
    }

    /* Overlay más claro para mejor visibilidad */
    .slide-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /* Reducimos la opacidad del 70% al 40% para que sea más claro */
      background: rgba(66, 57, 50, 0.4);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: white;
      padding: 0 2rem;
    }

    .slide-overlay h2 {
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 1rem;
      animation: fadeInUp 1s ease;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Añadimos sombra para mejor legibilidad */
    }

    .slide-overlay p {
      font-size: 1.2rem;
      max-width: 800px;
      animation: fadeInUp 1s ease 0.2s both;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Añadimos sombra para mejor legibilidad */
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .slider-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.3); /* Más visible */
      color: white;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.2rem;
      transition: background 0.3s, transform 0.3s;
      z-index: 10;
      backdrop-filter: blur(5px); /* Efecto de vidrio esmerilado */
    }

    .slider-nav:hover {
      background: rgba(255,255,255,0.5);
      transform: translateY(-50%) scale(1.1);
    }

    .prev {
      left: 20px;
    }

    .next {
      right: 20px;
    }

    .indicators {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
    }

    .indicator {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      cursor: pointer;
      transition: background 0.3s, transform 0.3s;
    }

    .indicator.active {
      background: var(--secondary);
      transform: scale(1.2);
    }

    /* Sections */
    section {
      padding: 4rem 2rem;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-title {
      text-align: center;
      font-size: 2.25rem;
      font-weight: 800;
      margin-bottom: 2.5rem;
      color: var(--dark);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .section-title.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .section-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 4px;
      background: var(--secondary);
      margin: 0.75rem auto;
      border-radius: 2px;
    }

    /* Section-specific backgrounds */
    #about { background: white; }
    #differentiators { background: var(--light); }
    #services { background: white; }
    #requirements { background: var(--light); }
    #methodology { background: white; }
    #gallery { background: var(--light); }
    #game { background: white; }
    #contact-form { background: var(--light-graylight); }

    .text-content {
      max-width: 800px;
      margin: 0 auto;
      font-size: 1.05rem;
      color: var(--gray);
    }

    .text-content p {
      margin-bottom: 1rem;
      opacity: 0;
      transform: translateY(15px);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .text-content p.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Media Blocks */
    .media-blocks {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin: 3rem 0;
    }

    .media-block {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .media-block:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .image-block img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      display: block;
    }

    .video-block {
      position: relative;
      height: 300px;
      overflow: hidden;
    }

    .video-block video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .media-caption {
      padding: 1rem;
      background: white;
      text-align: center;
    }

    .media-caption h3 {
      color: var(--dark);
      margin-bottom: 0.5rem;
      font-size: 1.2rem;
    }

    .media-caption p {
      color: var(--gray);
      font-size: 0.95rem;
    }

    /* Two columns layout with media */
    .two-columns {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      max-width: 1200px;
      margin: 2rem auto;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .two-columns.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (min-width: 768px) {
      .two-columns {
        grid-template-columns: 1fr 1fr;
      }
    }

    .text-column, .media-column {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    /* Features */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .features-grid.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .feature-card {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transition: transform 0.3s, box-shadow 0.3s;
      opacity: 0;
      transform: translateY(20px);
    }

    .features-grid.visible .feature-card {
      animation: fadeInUpCard 0.6s ease forwards;
    }

    @keyframes fadeInUpCard {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .feature-icon {
      width: 50px;
      height: 50px;
      background: var(--secondary);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 1.25rem;
      transition: transform 0.3s ease, background 0.3s ease;
    }

    .feature-card:hover .feature-icon {
      transform: scale(1.1);
      background: var(--accent);
    }

    .feature-icon i {
      color: white;
      font-size: 1.5rem;
    }

    .feature-card h3 {
      font-size: 1.35rem;
      margin-bottom: 0.75rem;
      color: var(--dark);
    }

    .feature-card p {
      color: var(--gray);
      font-size: 1rem;
    }

    /* Lists */
    .list-section ul {
      max-width: 800px;
      margin: 0 auto;
      padding-left: 1.5rem;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .list-section ul.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .list-section li {
      margin-bottom: 0.75rem;
      color: var(--gray);
      transition: color 0.3s ease;
    }

    .list-section li:hover {
      color: var(--secondary);
    }

    .list-section li::marker {
      color: var(--secondary);
    }

    /* Card */
    .card {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .card h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--accent);
    }

    /* Contact Form */
    .contact-form {
      background: white;
      padding: 2.5rem;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      max-width: 700px;
      margin: 0 auto;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .contact-form.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    @media (min-width: 768px) {
      .form-row {
        grid-template-columns: 1fr 1fr;
      }
    }

    .form-control {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      font-size: 1rem;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--secondary);
      box-shadow: 0 0 0 3px rgba(244, 149, 49, 0.1);
    }

    textarea.form-control {
      min-height: 120px;
      resize: vertical;
    }

    .antibot-group {
      background: #f8f9fa;
      padding: 1rem;
      border-radius: 8px;
      margin: 1.5rem 0;
      border-left: 4px solid var(--secondary);
    }

    .antibot-question {
      margin-bottom: 0.75rem;
      font-weight: 500;
      color: var(--accent);
    }

    .antibot-options {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .antibot-option {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .submit-btn {
      background: var(--secondary);
      color: white;
      padding: 0.85rem 2rem;
      border: none;
      border-radius: 5px;
      font-weight: 600;
      font-size: 1.05rem;
      cursor: pointer;
      transition: background 0.3s, transform 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .submit-btn:hover {
      background: var(--accent);
      transform: translateY(-2px);
    }

    .submit-btn:disabled {
      background: var(--gray);
      cursor: not-allowed;
      transform: none;
    }

    .form-message {
      margin-top: 1rem;
      padding: 0.75rem;
      border-radius: 5px;
      text-align: center;
      font-weight: 500;
      display: none;
    }

    .form-message.success {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
      display: block;
    }

    .form-message.error {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
      display: block;
    }

    /* Call to Action Section */
    .call-to-action {
      background: var(--light);
      border: 2px solid var(--secondary);
      border-radius: 16px;
      text-align: center;
      padding: 3rem 2rem;
      margin: 0 auto 4rem;
      max-width: 900px;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .call-to-action.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .call-to-action h2 {
      font-size: 2rem;
      color: white;
      margin-bottom: 1.5rem;
    }

    .call-to-action p {
      font-size: 1.15rem;
      color: var(--dark);
      margin-bottom: 2rem;
      line-height: 1.7;
    }

    .cta-buttons {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .cta-button {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.85rem 1.75rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 1.05rem;
      text-decoration: none;
      transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    }

    .cta-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

    .btn-whatsapp {
      background: var(--whatsapp);
      color: white;
    }

    .btn-whatsapp:hover {
      background: #1fa04e;
    }

    .btn-phone {
      background: var(--secondary);
      color: white;
    }

    .btn-phone:hover {
      background: var(--accent);
    }

    /* Footer */
    footer {
      background: var(--primary);
      color: white;
      padding: 3rem 2rem;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    footer.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .footer-content {
      max-width: 1000px;
      margin: 0 auto;
      text-align: center;
    }

     .footer-logo {
      width: 70%;
      height: auto;
    
    
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
      border-radius: 6px;
      font-weight: bold;
      font-size: 1.2rem;
      transition: transform 0.3s ease;
    }

    .footer-logo:hover {
      transform: scale(1.05);
    }

    .footer-content h3 {
      font-size: 1.8rem;
      margin-bottom: 1rem;
    }

    .footer-content p {
      color: #d1c9c2;
      margin-bottom: 2rem;
    }

    .footer-contact {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.5rem;
      margin-bottom: 2rem;
      font-size: 1rem;
    }

    .footer-contact i {
      margin-right: 0.5rem;
      color: var(--secondary);
    }

    .footer-bottom {
      margin-top: 2rem;
      padding-top: 2rem;
      border-top: 1px solid #5a4f45;
      color: #b8aea3;
    }

    div a {
      text-decoration: none;
      color: inherit;
    }

   




    /* Achievement System */
    .achievement-badge {
      position: fixed;
      top: 100px;
      right: 20px;
      background: var(--secondary);
      color: white;
      padding: 1rem;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      transform: translateX(150%);
      transition: transform 0.5s ease;
      z-index: 1000;
      max-width: 250px;
    }

    .achievement-badge.show {
      transform: translateX(0);
    }

    .achievement-icon {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    /* Interactive Elements */
    .interactive-counter {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      margin: 2rem 0;
    }

    .counter-btn {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--secondary);
      color: white;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      transition: transform 0.2s;
    }

    .counter-btn:hover {
      transform: scale(1.1);
    }

    .counter-value {
      font-size: 2rem;
      font-weight: 700;
      color: var(--accent);
      min-width: 60px;
      text-align: center;
    }

    /* Gallery Section */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .gallery-item {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }

    .gallery-item:hover {
      transform: scale(1.03);
    }

    .gallery-item img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      display: block;
    }

    /* Responsive Navigation */
    @media (max-width: 768px) {
      .hamburger {
        display: flex;
      }

      .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--light);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 1.5rem 0;
      }

      .nav-menu.active {
        left: 0;
      }

      .nav-menu li {
        margin: 1rem 0;
        opacity: 0;
        transform: translateY(10px);
      }

      .nav-menu.active li {
        animation: slideIn 0.4s forwards;
      }

      @keyframes slideIn {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
      .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
      .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
      .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
      .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
      .nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }
      .nav-menu.active li:nth-child(7) { animation-delay: 0.7s; }
      .nav-menu.active li:nth-child(8) { animation-delay: 0.8s; }
      .nav-menu.active li:nth-child(9) { animation-delay: 0.9s; }

      .header-top h1 {
        font-size: 1.5rem;
      }
      .slide-overlay h2 {
        font-size: 2rem;
      }
      .slide-overlay p {
        font-size: 1rem;
      }
      .section-title {
        font-size: 1.8rem;
      }
      .contact-info, .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
      }

      .cta-buttons {
        flex-direction: column;
        align-items: center;
      }

      .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
      }

      .hero-slider {
        height: 400px;
      }

      .antibot-options {
        flex-direction: column;
        align-items: flex-start;
      }

      .game-board {
        grid-template-columns: repeat(3, 1fr);
      }

      .achievement-badge {
        top: 80px;
        right: 10px;
        max-width: 200px;
      }

      .media-blocks {
        grid-template-columns: 1fr;
      }

      .gallery-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Back to Top Button */
    .back-to-top {
      position: fixed;
      bottom: 100px;
      right: 30px;
      width: 50px;
      height: 50px;
      background: var(--secondary);
      color: white;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.2rem;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 999;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background: var(--accent);
      transform: translateY(-3px);
    }

     .correo-enlace {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
  }

  .correo-enlace:hover {
    color: white; /* blanco*/
  }

   .boton-postulacion {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #ffb04c;
    background-color: #423932;;
    border: 2px solid salmon;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
  }

  .boton-postulacion:hover {
    background-color: #423932;
    color: white;
    border-color: #423932;
  }

  @media (max-width: 600px) {
    .boton-postulacion {
      font-size: 0.9rem;
      padding: 0.6rem 1.2rem;
    }
  }

  /* Gallery Section - Estilos para videos */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
  background: #000; /* Fondo negro para mientras carga el video */
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Mejorar la apariencia de los controles del video */
.gallery-item video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.5);
}

.gallery-item video::-webkit-media-controls-play-button,
.gallery-item video::-webkit-media-controls-mute-button {
  background-color: var(--secondary);
  border-radius: 50%;
}

.gallery-item video::-webkit-media-controls-timeline {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* Estados de carga del video */
.gallery-item video[poster] {
  background-color: var(--primary);
}

/* Indicador de carga para videos */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  z-index: 2;
}

.gallery-item video:not([data-loaded])::before {
  opacity: 1;
}

/* Efecto de overlay al hacer hover */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(66, 57, 50, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Responsive para videos en la galería */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item video {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .gallery-item video {
    height: 180px;
  }
}