/* === VARIABLES === */
:root {
    --color-principal: #d32f2f;
    --color-oscuro: #111111;
    --color-secundario: #eeeeee;
    --color-acento: #29b6f6;
  }
  
  /* === RESET === */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: var(--color-oscuro);
    color: white;
    line-height: 1.6;
  }
  
  /* === NAVBAR === */
  .navbar {
    background-color: var(--color-oscuro);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .navbar-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
  }
  
  .nav-links {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: var(--color-principal);
  }
  
  /* === HERO === */
  .hero {
    background: url('../img/joacoheader2.jpeg') no-repeat center 40% / cover;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
  }
  
  
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .hero-content {
    color: white;
    z-index: 1;
  }

  
  .hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    letter-spacing: 15px;
    margin-bottom: 10px;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
    text-transform: uppercase;
  }
  
  h2 {
    background: linear-gradient(
      120deg,
      var(--color-principal) 0%,
      rgb(250, 112, 112) 50%,
      var(--color-principal) 100%
    );
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: estela 4.5s linear infinite;
  }
  
  /* Estilo sin cambiar el tamaño ni posición */
  @keyframes estela {
    0% {
      background-position: 200% center;
    }
    100% {
      background-position: -200% center;
    }
  }
  
  .hero p {
    font-size: 1.8rem;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
  }
  
  .hero-btn {
    margin-top: 20px;
    font-size: 1.1rem;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
  }
  
  /* === SECCIONES === */
  .seccion {
    padding: 80px 20px;
    max-width: 1000px;
    margin: auto;
  }
  
  .bg-clara {
    background-color: #1a1a1a;
  }
  
  .bg-oscura {
    background-color: var(--color-oscuro);
  }
  
  .texto-blanco {
    color: white;
  }
  
  .seccion h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* === SOBRE MÍ === */
  .sobre-mi .contenedor-sobre {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
  }
  
  .texto-sobre {
    flex: 1 1 400px;
    max-width: 600px;
  }
  
  .foto-sobre {
    flex: 1 1 300px;
    text-align: center;
  }
  
  .foto-sobre img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: aparecer 1s ease-out forwards;
    animation-delay: 0.3s;
  }
  
  @keyframes aparecer {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* === TARJETAS === */
  .tarjetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }
  .tarjeta-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
  }
  
  .tarjeta {
    background-color: #1c1c1c;
    color: white;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
  }
  .tarjeta .btn-secundario {
    display: block;
    margin: 10px auto;
  }
  
  .tarjeta .btn-joaco {
    display: block;
    margin: 15px auto 0;
  }
  
  .contenido-tarjeta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .btn-secundario {
    background-color: transparent;
    color: var(--color-acento);
    border: 1px solid var(--color-acento);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .btn-secundario:hover {
    background-color: var(--color-acento);
    color: black;
  }
  
  .flecha {
    display: inline-block;
    transition: transform 0.3s ease;
  }
  
  .btn-secundario.abierto .flecha {
    transform: rotate(180deg);
  }
  
  .info-extra {
    margin-top: 10px;
    padding: 10px;
    background-color: #222;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    display: none;
    color: white;
    animation: fadeDown 0.4s ease-out forwards;
  }
  
  @keyframes fadeDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .btn-joaco {
    background-color: var(--color-principal);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
  }
  
  .btn-joaco:hover {
    background-color: #b71c1c;
    transform: scale(1.05);
  }
  
  /* === MODAL === */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .modal-contenido {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    color: var(--color-oscuro);
    position: relative;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }
  
  .modal-contenido h3 {
    margin-bottom: 15px;
  }
  
  .modal-contenido a {
    color: var(--color-principal);
    font-weight: bold;
  }
  
  .modal-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-principal);
  }
  
  /* === FOOTER === */
  .footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
  }
  
  /* === ENLACES === */
  a {
    color: var(--color-acento);
    text-decoration: none;
  }
  
  a:hover {
    color: var(--color-principal);
  }
  
  /* === CAROUSEL === */
  .carousel-seccion {
    text-align: center;
  }
  
  .carousel {
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 30px auto;
    border-radius: 10px;
  }
  

  .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .carousel-item.activo {
    opacity: 1;
    position: relative;
    z-index: 1;
  }
  
  
  .carousel-item img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
  }
  
  .carousel-item h3 {
    color: white;
    font-size: 1.6rem;
  }
  
  .carousel-controles {
    margin-top: 15px;
  }
  
  .carousel-controles button:hover {
    background-color: #b71c1c;
  }
  
  .contacto-seccion {
    background-color: #1a1a1a;
    color: white;
  }
  
  .contacto-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin-top: 30px;
  }
  
  
  .contacto-info {
    flex: 1 1 150px;
  }
  
  .contacto-info ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
  }
  
  .contacto-info li {
    margin-bottom: 10px;
  }
  
  .contacto-info a {
    color: var(--color-acento);
    text-decoration: none;
    font-weight: 500;
  }
  
  .contacto-info a:hover {
    color: var(--color-principal);
  }
  

  

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: zoomIn 0.5s ease-out;
    transition: transform 0.2s ease;
  }
  
  .whatsapp-btn:hover {
    transform: scale(1.1);
  }
  
  .whatsapp-btn img {
    width: 32px;
    height: 32px;
  }
  
  @keyframes zoomIn {
    from {
      transform: scale(0.5);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }


    
  }
  .footer {
    background-color: #000;
    color: white;
    padding: 50px 20px 20px;
    font-size: 0.95rem;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    gap: 30px;
  }
  
  .footer-col {
    flex: 1 1 200px;
  }
  
  .footer-col h3,
  .footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--color-principal);
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-col ul li {
    margin-bottom: 8px;
  }
  
  .footer-col ul li a {
    color: var(--color-acento);
    text-decoration: none;
  }
  
  .footer-col ul li a:hover {
    color: var(--color-principal);
    text-decoration: underline;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: #888;
  }
  


  .invisible {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
  }
  
  .animado.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* === MENÚ HAMBURGUESA === */
.hamburguesa {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburguesa span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === MENÚ HAMBURGUESA === */
.hamburguesa {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburguesa span {
  height: 3px;
  width: 25px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-oscuro);
    padding: 20px 0;
    z-index: 1000;
  }

  .nav-links a {
    padding: 10px;
    font-size: 1.2rem;
  }

  .nav-links.activo {
    display: flex;
  }

  .hamburguesa {
    display: flex;
  }

  .navbar-content {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}
