/* --- Paleta de Colores --- */
:root {
    --primary-color: #004aad;
    --secondary-color: #0c8ddf;
    --accent-color: #ff5757;
    --bg-dark: #000000;
    --text-color: #000000;
    --text-light: #4a5568;
    --bg-light: #f7f7f7;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease-in-out;
    --border-radius: 12px;
}

/* --- Estilos Generales --- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #003a80;
    border-color: #003a80;
    transform: translateY(-2px);
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Header --- */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    text-decoration: none;
}

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

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

.language-switch {
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
}

.lang-option {
    opacity: 0.5;
    transition: var(--transition);
}

.lang-option.active {
    opacity: 1;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image-container {
    flex-shrink: 0;
    max-width: 500px;
    width: 100%;
    height: 350px;
    background-color: var(--bg-dark);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
}

/* --- Benefits Section --- */
.benefits-section {
    background-color: white;
}

.benefits-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.benefit-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.benefit-filter-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.benefit-filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hidden {
    display: none !important;
}

/* --- About Us Section --- */
.about-us-section {
    background-color: var(--bg-light);
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.mission, .vision {
    max-width: 450px;
    text-align: center;
}

.mission h3, .vision h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.mission p, .vision p {
    color: var(--text-light);
    line-height: 1.7;
}

.about-image-placeholder {
    margin-top: 20px;
    width: 100%;
    height: 250px;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: var(--border-radius);
}
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Responsive Video Container */
.video-container {
    max-width: 800px; /* Adjust as needed for desired video size */
    margin: 0 auto;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* IceTrack en Acción Section */
#icetrack-en-accion .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

#icetrack-en-accion .section-title {
    margin-bottom: 30px;
}

#icetrack-en-accion .flex-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#icetrack-en-accion .md\:flex-row {
    flex-direction: row;
    align-items: center; /* Align items vertically in desktop view */
}

#icetrack-en-accion .md\:w-1\/2 {
    width: 50%;
}

#icetrack-en-accion p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem; /* Add some space between paragraphs */
}

#icetrack-en-accion .video-container {
    padding: 10px; /* Add some padding around the video */
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    font-weight: 600;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--primary-color);
    color: white;
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.contact-image-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-form-container p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-form button {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 15px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background-color: #e54c4c;
    transform: translateY(-2px);
}

.success-message {
    display: none;
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s ease;
}
.success-message i {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}
.success-message p {
    font-size: 1.1rem;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        order: 2;
    }
    .hero-image-container {
        order: 1;
    }

    .benefits-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-form-container h2 {
        text-align: center;
    }

    #icetrack-en-accion .md\:flex-row {
        flex-direction: column;
    }

    #icetrack-en-accion .md\:w-1\/2 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .language-switch {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

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

    .about-image {
        height: 200px;
    }
}

/* --- Contactanos Styles --- */
.contacto {
  padding: 6rem 5rem 3rem 5rem;
  background-color: #c1c3d3;
  color: #333;
}

.contacto h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.contacto-contenido {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  width: 100%;
  align-items: flex-start;
}

.formulario-contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

input,
select,
textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.checkboxes label,
.radios label {
  margin-right: 1rem;
}

button[type="submit"] {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #0051ba;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #003e91;
}

.contacto-instrucciones {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 2rem;
}


.mensaje-enviado {
  margin-top: 1.5rem;
  color: green;
  font-weight: bold;
}

@media (max-width: 768px) {
  .contacto-contenido {
    flex-direction: column;
  }

  .formulario-contacto,
  .contacto-instrucciones {
    width: 100%;
  }

  .mensaje-enviado {
    text-align: center;
  }
}

/* --- Footer Styles --- */
footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  width: 60px;
  height: auto;
  margin-bottom: 0.5rem;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin: 0.3rem 0;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

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

.social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social img {
    margin-bottom: 0.5rem;
  }
}