:root {
  --color-text: #333;
  --color-bg: #fff;
  --color-header-bg: rgba(255,255,255,0.95);
  --color-header-shadow: rgba(0,0,0,0.1);
  --color-nav: #555;
  --color-nav-hover: #e15e80;
  --color-hero-h1: #e15e80;
  --color-hero-p: #fff;
  --color-contact-border-focus: #e15e80;
  --color-contact-shadow-focus: rgba(230,126,161,0.4);
  --color-contact-btn-bg: #e15e80;
  --color-contact-btn-color: #fff;
  --color-footer-bg: #f8f8f8;
  --color-footer-text: #555;
}

html {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  background-color: var(--color-header-bg);
  box-shadow: 0 2px 5px var(--color-header-shadow);
  min-height: 70px;
}

.logo img {
  height: 70px;
  display: block;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--color-nav);
  font-weight: 600;
  padding: 6px 12px;
  font-size: 0.95rem;
  transition: color 0.3s;
  display: inline-block;
}

nav a:hover,
nav a.active {
  color: var(--color-nav-hover);
}

.hero {
  position: relative;
  height: 100vh;
  background: url('img/maquillaje.jpg') center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 10%;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 50%;
  margin: 0;
  text-align: left;
}

.hero-text h1 {
  font-size: 4rem;
  color: var(--color-hero-h1);
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.hero-text p {
  font-size: 1.5rem;
  color: var(--color-hero-p);
  line-height: 1.6;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-logo img {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.quededicamos, .trabajos-section, section, .contacto {
  padding: 80px 60px;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  color: var(--color-nav-hover);
  margin-bottom: 25px;
}

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

.trabajos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.trabajo img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.trabajo img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.modal:target {
  display: flex;
}

.modal a {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  text-decoration: none;
  font-size: 30px;
}

.contacto form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

.contacto input,
.contacto textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.contacto input:focus,
.contacto textarea:focus {
  border-color: var(--color-contact-border-focus);
  box-shadow: 0 0 6px var(--color-contact-shadow-focus);
}

.contacto button {
  padding: 12px;
  background-color: var(--color-contact-btn-bg);
  color: var(--color-contact-btn-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.contacto button:hover {
  background-color: var(--color-contact-btn-bg);
}

footer {
  text-align: center;
  padding: 25px 10px;
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  margin-top: auto;
}

.mapa iframe {
  border-radius: 10px;
  margin-top: 30px;
}

.mapa iframe {
  width: 100%;
  height: 400px;
  max-width: 100%;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .mapa iframe {
    height: 300px;
  }
}

@media (max-width: 400px) {
  .mapa iframe {
    height: 250px;
  }
}
