@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:wght@400;600&display=swap');

:root {
  --color-white: #ffffff;
  --color-primary: #2c3e50;
  --color-secondary: #34495e;
  --color-accent: #3498db;
  --color-text: #4a4a4a;
  --color-text-light: #6c7a89;
  --color-background: #fafafa;
  --color-border: #e0e0e0;
  --color-footer-heading: #a0aec0; /* Un gris claro */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--color-primary);
}

.footer-heading {
  color: var(--color-footer-heading);
}

.navbar {
  background-color: var(--color-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 0.5rem 0;
}

.navbar a {
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.8125rem;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--color-accent);
}

/* Aumentar el tamaño del logo */
.navbar .text-2xl {
  font-size: 1.5rem;
  font-weight: 600;
}

.flag-icon {
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3em;
}

.hero-section {
  background-color: var(--color-background);
  color: var(--color-text);
  padding: 150px 0;
  display: flex;
  align-items: center;
  justify-content: right;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: right;
  align-items: center;
  text-align: right;
  position: relative;
  z-index: 1;
  color: #ffffff; /* Asegúrate de que el texto sea visible sobre el video */
}

.hero-title, .hero-subtitle {
  font-family: 'Playfair Display', serif;
  color: var(--color-white);
  text-align: right;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  display: block; /* Asegura que el subtítulo se muestre como bloque */
}

.hero-title::after {
  content: '|';
  position: absolute;
  right: -0.5rem;
  animation: blink 1.0s infinite;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: var(--color-primary);
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

.word-container {
  display: inline-block;
  position: relative;
  margin-right: 0.5em;
}

.word {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.word::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: var(--color-background);
  animation: revealText 1s ease forwards;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 10px auto 0;
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

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

[lang="en"], [lang="es"] {
  display: none;
}

[lang].active {
  display: block;
}

[lang]:not(.active) {
  display: none;
}


.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

#about img {
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#contact form {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#contact input, #contact textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: border-color 0.3s ease;
  font-size: 0.9375rem;
}

#contact input:focus, #contact textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

#contact button {
  width: 100%;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 10px;
  border-radius: 2px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
}

#contact button:hover {
  background-color: #2980b9;
}

footer {
  background-color: var(--color-white);
  color: var(--color-text);
  padding: 40px 0 20px;
  border-top: 1px solid var(--color-border);
}

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

footer ul {
  list-style-type: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

footer a:hover {
  color: var(--color-accent);
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  display: inline-block;
  margin-right: 0.75rem;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--color-accent);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* definido para VIDEO */
.hero-title, .hero-subtitle {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}



@keyframes revealText {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@media (max-width: 768px) {

  .video-background video {
    width: 100%;
    height: 100%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .section h2 {
    font-size: 1.125rem;
  }

  .card {
    padding: 15px;
    margin-bottom: 15px;
  }

  .navbar .hidden {
        display: none;
    }  
}


/* Sector de Chat */

#contact-form input[type="email"],
#contact-form textarea {
  transition: border-color 0.3s, box-shadow 0.3s;
}

#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

#contact-form button {
  transition: background-color 0.3s;
}

#contact-form button:hover {
  background-color: #4338CA;
}

#error-message {
  margin-top: 0.5rem;
}


/***/

.flag {
  font-size: 1.2em;
  line-height: 1;
  margin-right: 0.3em;
}

.hidden {
  display: none;
}

.lang-visible {
  display: block;
}

.lang-hidden {
  display: none;
}

#mobile-menu {
  display: none;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
}

#mobile-menu.active {
  display: block;
}


/* Seccion de video **/

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  filter: brightness(50%); /* Oscurece el video directamente */
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1); /* Ajusta la opacidad aquí */
  backdrop-filter: blur(1px); /* Ajusta el nivel de desenfoque aquí */
}

