:root {
    --primary-color: #2790a5;
    --primary-color-rgb: 20, 80, 100;
    --secondary-color: #88c86f;
    --secondary-color-light: #9ae37e;
    --text-color: #333;
    --white: #ffffff;
    --light-gray: #f9f9f9;
}

/* Base Styles & Typography */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    margin-top: 0;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* Layout & Structure */
.content-section {
    padding: 4rem 5%;
    text-align: center;
}

.content-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    text-align: left;
}

.content-row .text-container,
.content-row .image-container {
    flex: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 0.5rem;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color-light);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: .75rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 60px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.lang-btn.active-lang {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 2rem 5% 5%;
    text-align: left;
}

.hero-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text-container {
    flex: 2;
    max-width: 65%;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 35%;
}

.hero-image {
    max-width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--secondary-color);
}

.hero-text-container h1 {
    font-size: 3.0rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-text-container p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 0 2rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Grid Sections */
.opportunity-grid,
.ai-features-grid,
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.opportunity-item,
.ai-feature-item,
.business-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.business-item img {
    max-width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    object-fit: contain;
}

.opportunity-item img,
.ai-feature-item img {
    height: 60px;
    margin-bottom: 1rem;
}

.opportunity-item h3,
.ai-feature-item h3 {
    color: var(--primary-color);
}

/* Image Styles */
.content-row img {
    max-width: 85%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Alternating Section Backgrounds */
#que-es,
#inteligencia-artificial,
#implementacion,
#faqs {
    background-color: var(--white);
}

#slider-gallery,
#oportunidad,
#negocios,
#casos-practicos,
#contacto {
    background-color: var(--light-gray);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1.5rem 0;
}

.faq-question {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question.active {
    color: var(--secondary-color);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
    transform: translateY(-50%);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.faq-answer.open {
    max-height: 500px;
    opacity: 1;
}

.faq-answer p {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    background: linear-gradient(rgba(var(--primary-color-rgb), 0.90), rgba(var(--primary-color-rgb), 0.90)), url('../images/background-parallax.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-logo img {
    max-height: 48px;
}

.footer-text {
	font-size: 0.8rem;
}

.social-links {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Slider Gallery */
#slider-gallery {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-info-container {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slider-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: pre-line;
    color: var(--white);
}

.slider-info-container p {
    font-size: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}


.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: var(--white);
}

/* Documentation section */
.documentation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

.documentation-content img {
    height: 100px;
    width: auto;
}

/* Estilos específicos para la sección de Contacto */
#contacto .content-row {
    flex-direction: row;
    text-align: left;
}

#contacto .content-row .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#contacto .content-row img {
    width: 400px;
    height: auto;
    border: 5px solid var(--secondary-color);
    border-radius: 32px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================= */
/* RESPONSIVE FIXES          */
/* ========================= */
@media (max-width: 768px) {
  /* HERO */
  .hero-split-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text-container {
    max-width: 100%;
  }
  .hero-image-container {
    justify-content: center;
    max-width: 100%;
  }
  .hero-image {
    max-width: 250px;
    height: auto;
  }

  /* CASOS PRÁCTICOS */
  #casos-practicos .content-row {
    flex-direction: column;
    text-align: center;
  }
  #casos-practicos .image-container img {
    max-width: 90%;
    height: auto;
  }

  /* CONTACTO */
  #contacto .content-row {
    flex-direction: column;
    text-align: center;
  }
  #contacto .content-row img {
    max-width: 80%;
    height: auto;
  }
}