/*
Theme Name: Herreria Creativa
Theme URI: https://tusitio.com/
Author: Tu Nombre
Description: Tema personalizado para herrería creativa.
Version: 1.0
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #222;
}

/* Video de fondo fijo */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 5.0;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* === HEADER MINIMALISTA Y RESPONSIVO === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding-left: 32px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 40px;
  margin-left: 32px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

nav a:hover {
  color: #f7c873;
  background: rgba(247, 200, 115, 0.08);
}

/* Estilos para el ícono de usuario */
.user-icon {
  margin-left: auto;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 50%;
  background: rgba(247, 200, 115, 0.1);
  border: 1px solid rgba(247, 200, 115, 0.3);
  transition: all 0.3s ease;
}

.user-icon:hover {
  background: rgba(247, 200, 115, 0.2);
  border-color: #f7c873;
  transform: scale(1.1);
}

/* Estilos para páginas de login/registro */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
}

.auth-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  color: #333;
}

.auth-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background: #f7c873;
  color: #333;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px 0;
  transition: background 0.3s;
}

.auth-form button:hover {
  background: #e6b766;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-links a {
  color: #f7c873;
  text-decoration: none;
  margin: 0 10px;
}

.auth-links a:hover {
  text-decoration: underline;
}

.error-message {
  background: #ff6b6b;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
}

.success-message {
  background: #51cf66;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .header-content {
    padding: 0 10px;
  }
  nav {
    gap: 16px;
  }
  .logo {
    margin-right: 20px;
    margin-left: 10px;
  }
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    height: auto;
    gap: 8px;
    padding: 0 4px;
  }
  nav {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 15px;
    justify-content: center;
  }
  .logo {
    margin: 0 auto 4px auto;
  }
  .logo img {
    height: 30px;
  }
}

/* === FIN HEADER === */

/* HERO Y LOGO GRANDE */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 110px;
    position: relative;
}
.hero-logo img {
    display: block;
    margin: 0 auto 32px auto;
    border-radius: 16px;
    background: rgba(0,0,0,0.7);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 16px 24px;
    max-width: 90vw;
    width: 250px;
}
.content h2, .content h1 {
    font-size: 2.8em;
    margin-bottom: 18px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.content p {
    font-size: 1.25em;
    margin-bottom: 32px;
    color: #e0e0e0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.hero-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}
.hero-icon {
    font-size: 2.2em;
    color: #f7c873;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* GALERÍA SIN BORDES AMARILLOS */
.trabajos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(0,0,0,0.6);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7c873;
    font-weight: 500;
    font-size: 1.15em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    border: none !important;
    transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-item:hover {
    box-shadow: 0 8px 32px rgba(247,200,115,0.10);
    transform: translateY(-4px) scale(1.03);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SECCIONES Y FOOTER */
.section {
    padding: 80px 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
    background: rgba(34, 34, 34, 0.15); /* Fondo negro 15% de opacidad */
    border-radius: 15px;
    position: relative;
    z-index: 10;
    margin-top: 32px;
}
.section-title {
    font-size: 2.2em;
    margin-bottom: 32px;
    color: #f7c873;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.section p {
    font-size: 1.15em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
footer {
    background: rgba(0,0,0,0.92);
    color: #fff;
    text-align: center;
    padding: 32px;
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

/* Slider */
.slider {
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 2;
    margin-bottom: 48px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 100%;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    text-align: center;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* Servicios */
.servicios {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.servicios li {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    color: #e0e0e0;
}

.servicios li:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(247, 200, 115, 0.1);
}

.servicios li::before {
    content: '⚒️';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
}

/* Contact Form */
.wpcf7-form {
    max-width: 600px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: none;
    backdrop-filter: blur(10px);
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #f7c873;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #f7c873;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(247, 200, 115, 0.1);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #aaa;
}

.wpcf7-form textarea {
    height: 150px;
    resize: vertical;
}

.wpcf7-submit {
    background: linear-gradient(135deg, #f7c873, #e6b85a);
    color: #222;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpcf7-submit:hover {
    background: linear-gradient(135deg, #e6b85a, #f7c873);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(247, 200, 115, 0.4);
}

/* Contact Info */
.contact-info {
    margin-top: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    border: none;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #e0e0e0;
}

.contact-icon {
    margin-right: 10px;
    font-size: 18px;
}

.contact-info a {
    color: #f7c873;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #e6b85a;
    text-decoration: underline;
}

.contact-info strong {
    color: #f7c873;
    font-weight: bold;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

@media (max-width: 900px) {
    .header-content {
        padding: 0 10px;
    }
    nav {
        gap: 18px;
    }
    .hero-logo img {
        width: 120px;
        padding: 10px 8px;
    }
}
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        height: auto;
        gap: 8px;
        padding: 0 4px;
    }
    nav {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 15px;
    }
    .logo img {
        height: 30px;
        margin: 0 auto 4px auto;
    }
    .hero-logo img {
        width: 80px;
        padding: 6px 2px;
    }
    .content h2, .content h1 {
        font-size: 1.3em;
    }
    .section-title {
        font-size: 1.2em;
    }
} 