:root {
  --color-primary: #15b8aa;
  --color-secondary: #b7ac14;
  --color-tertiary: #ac14b7;
  --text-color: #333;
  --bg-light: #f9f9f9;
  --bg-white: #fff;
}

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; color: var(--text-color); background: var(--bg-white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav */
header { background: var(--bg-white); box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 100; }
nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; }
.logo img { margin-right: 8px; }
.logo span { font-size: 1.5em; font-weight: bold; color: var(--color-primary); }
nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 20px; }
nav ul li a { text-decoration: none; color: var(--text-color); font-weight: 500; }
nav ul li a:hover { color: var(--color-secondary); }
.btn { padding: 12px 24px; background: var(--color-primary); color: #fff; text-decoration: none; border-radius: 4px; }

/* Selector de idioma */
.lang-switch { position: absolute; top: 15px; right: 20px; }
.lang-switch img { display: block; }

/* Mobile */
.menu-btn { display: none; background: none; border: none; font-size: 1.5em; cursor: pointer; color: var(--color-primary); }
@media (max-width: 768px) {
  .menu-btn { display: block; }
  nav ul { display: none; }
  nav ul.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background: var(--bg-white); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
  nav ul.open li { margin: 10px 0; text-align: center; }
}

.flag-fixed {
  width: 35px;
  height: 25px;
  object-fit: cover; /* recorta o encuadra sin deformar */
  max-width: 100%; height: auto; border-radius: 8px
}

.img-fixed {
  width: 300px;
  height: 200px;
  object-fit: cover; /* recorta o encuadra sin deformar */
  max-width: 80%; height: auto; border-radius: 8px
}

/* Hero */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 120px 0 60px; background: var(--bg-light); }
.hero-content { display: flex; align-items: center; justify-content: space-between; }
.hero .text { max-width: 600px; }
.hero h1 { font-size: 2.5em; margin-bottom: 0.5em; color: var(--color-primary); }
.hero p { font-size: 1.1em; margin-bottom: 1em; }

/* Features */
.features { padding: 60px 0; }
.features h2 { text-align: center; font-size: 2em; margin-bottom: 1em; color: var(--color-primary); }
.features .grid { display: flex; flex-wrap: wrap; gap: 20px; }
.features .item { flex: 1 1 calc(33% - 20px); background: var(--bg-white); padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-radius: 4px; text-align: center; border-top: 4px solid var(--color-primary); }
.features .item h3 { color: var(--color-primary); margin-top: 10px; font-size: 1.2em; }
.features .item p { font-size: 0.95em; }

/* Casos de Uso */
.use-cases { padding: 60px 0; text-align: center; }
.use-cases h2 { font-size: 2em; color: var(--color-primary); margin-bottom: 0.5em; }
.use-cases p { font-size: 1em; max-width: 800px; margin: 0 auto; }

/* Integraciones */
.integrations { padding: 60px 0; }
.integrations h2 { text-align: center; font-size: 2em; color: var(--color-secondary); margin-bottom: 0.5em; }
.integrations p { font-size: 1em; max-width: 800px; margin: 0 auto; }

/* Sobre Nosotros */
.about { padding: 60px 0; background: var(--bg-light); text-align: center; }
.about h2 { font-size: 2em; color: var(--color-primary); margin-bottom: 0.5em; }
.about p { font-size: 1em; max-width: 700px; margin: 0.5em auto; }

/* Modal de Contacto */
.modal { display: none; position: fixed; z-index: 200; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background: var(--bg-white); margin: 15% auto; padding: 20px; border-radius: 4px; width: 90%; max-width: 400px; text-align: center; }
.modal .close { float: right; font-size: 1.5em; cursor: pointer; color: var(--text-color); }

/* Footer */
footer { background: var(--text-color); color: #fff; padding: 40px 0; }
.footer-container { display: flex; flex-wrap: wrap; gap: 40px; }
.col { flex: 1 1 200px; }
footer h4 { font-size: 1em; margin-bottom: 1em; }
footer ul { list-style: none; }
footer ul li a { color: #ccc; text-decoration: none; font-size: 0.9em; }
footer ul li a:hover { color: var(--color-primary); }
