/*!******************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./src/styles.css ***!
  \******************************************************************/
/* --- Tipografías --- */
@font-face {
  font-family: 'Poppins';
  src: url(35d26b781dc5fda684cc.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url(b30f6dd107ae0d40f7ab.ttf) format('truetype');
  font-weight: 300 700;
  font-style: normal;
}


/* Paleta como variables */
:root {
  --color-primary: #A66124;
  --color-secondary: #F2F2F2;
  --color-gray: #545454;
  --color-black: #000000;
}

/* --- Estilos generales --- */
* {
  font-family: 'Poppins', Candara, sans-serif;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem); 
  /* min 32px, escala con la pantalla, max 48px */
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  /* min 24px, ideal entre, max 36px */
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  /* min 20px, max 28px */
}


/* Reset / base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Belgan Aesthetic Regular', 'Poppins', 'Candara', sans-serif;
  color: var(--color-black);
  background-color: var(--color-secondary);
  line-height: 1.6;
}

/* Contenedor */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: var(--color-black);
  color: var(--color-secondary);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.oona-icon {
  padding: 0.6em;
  aspect-ratio: 1/1;
  border:  1px solid var(--color-primary);
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1rem;   /* ajusta según el tamaño del círculo */
  color:  var(--color-primary);
  text-align: center;
  letter-spacing: 0.01em;
}

.oona-icon {
  animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--color-secondary);
  font-family: 'Cormorant Garamond', serif;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Hero */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 8rem 4rem; /* solo vertical */
  background: linear-gradient(135deg, var(--color-primary), var(--color-black));
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite alternate;
  color: var(--color-secondary);
  text-align: center;
}

.hero-content {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}


@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.btn-black {
  background-color: var(--color-black);
  color: var(--color-secondary);
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-black:hover {
  transform: scale(1.03);
  color: var(--color-primary);
}

/* Secciones */
section {
  padding: 4rem 0;
}

section {
  scroll-margin-top: 80px; /* ajusta según la altura del header */
}


section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-black);
}

/* Sobre mí */
.about p {
  max-width: 800px;
  margin: 0 auto 1.2rem;
  color: var(--color-gray);
}

/* Nuevos servicios */

#services-2{
  max-width: 1200px;
  margin: 0 auto;
}

.services-2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}

.services-2 .service {
  margin-bottom: 3rem;
}

.service {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--color-secondary);
  padding: 1rem;
  border-radius: 10px;
  color: var(--color-gray);
  border: 1px solid #ddd;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Texto */
.service-text {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-text h3 {
  color: var(--color-primary);
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}

/* Mobile: párrafo siempre visible */
.service-text .secondary {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Ícono oculto en mobile */
.title-icon {
  display: none;
}

/* Imagen / video */
.service-media img,
.service-media video {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-media video {
  height: 350px;
  aspect-ratio: 16 / 9;
  background-color: #000;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

/* Layout en pantallas grandes */
@media (min-width: 768px) {
  .service {
    flex-direction: row;
    cursor: default;
  }
  
  .service:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  .service-text,
  .service-media {
    flex: 1;
  }
  
  /* Videos ocupan 1/4 en lugar de 1/2 */
  .service-with-video .service-text {
    flex: 3;
  }
  
  .service-with-video .service-media {
    flex: 1;
  }
  
  /* Ícono visible en desktop */
  .title-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    vertical-align: middle;
    margin-right: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  /* Desktop: ocultar párrafo inicialmente */
  .service-text h3 {
    transition: transform 0.4s ease;
  }
  
  .service-text .secondary {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.9s ease, transform 0.5s ease, max-height 0.4s ease;
  }
  
  /* Hover effects solo en desktop */
  .service:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
  
  .service:hover .title-icon {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
  }
  
  .service:hover .service-text h3 {
    transform: translateY(-15px);
  }
  
  .service:hover .service-text .secondary {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.5rem;
    transition-delay: 0.2s;
  }
}

/* Contacto */
.contact form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact button {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--color-black);
  color: var(--color-secondary);
  text-align: center;
  padding: 1.5rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-icons {
  display: flex;
  gap: 1rem;
}

.footer-icons a {
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: var(--color-primary);
}

.footer-icons svg {
  color: inherit;
}

/* Responsive nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-secondary);
  display: block;
  transition: all 0.3s ease;
}

/* Transformación a X cuando está activo */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100px;
    right: 0;
    background-color: var(--color-black);
    flex-direction: column;
    gap: 0;
    width: 100%;
    display: none;
    border-top: 0.5px solid var(--color-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
  .nav-links a{
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-size: larger;
    text-decoration: none;
    text-align: right;
    line-height: 1;
    margin: 5px 0 10px 0;  /* arriba, derecha, abajo, izquierda */
  }
  .nav-links.show {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* CONTACTO */
form input,
form textarea {
  width: 100%;
  display: block;
  box-sizing: border-box; /* para que el padding no rompa el ancho */
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.error-msg {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  display: block;
}

/* Fondo oscuro */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

/* Caja del modal */
.modal-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

/* Botón de cierre */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Círculo base */
#modal-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: bold;
  background-color: #fff; /* fondo blanco */
}

/* Éxito */
#modal-icon.success {
  border: 2px solid #2ecc71; /* borde verde */
  color: #2ecc71;            /* check verde */
}

#modal-icon.success::before {
  content: "✓";
  font-family: Arial, sans-serif;
  font-weight: 900;
}

/* Error */
#modal-icon.error {
  border: 2px solid #e74c3c; /* borde rojo */
  color: #e74c3c;            /* X roja */
}

#modal-icon.error::before {
  content: "✕";
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

