/*
Theme Name: NextPower
Description: Tema one-page para NextPower con administración mediante ACF
Version: 1.0.0
Author: Tu Nombre
Text Domain: nextpower
*/

/* Estilos personalizados */
:root {
  --primary-color: #0d6efd;
  --dark-bg: #000;
  --overlay-color: rgba(242, 114, 41, 0.5);
  --overlay-color-hover: rgba(242, 114, 41, 0.7);
  --topbar-bg-color: #ff6900;
  --menu-bg-color: #03a44e;
  --menu-text-color: #fff;
  --bg-boton: #03a44e;
  --bg-footer: #03a44e;
  --text-title: #03a44e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Top Bar */
.top-bar {
  background-color: var(--topbar-bg-color);
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.social-icons a {
  color: white;
  margin-left: 15px;
  font-size: 18px;
  transition: color 0.3s ease;
}

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

/* Header */
.main-header {
  background-color: var(--menu-bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 1025;
  padding-top: 30px;
  padding-bottom: 30px;
}

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

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--menu-text-color) !important;
  margin: 0 10px;
  transition: color 0.3s ease;
  position: relative; /* ← AGREGADO para el pseudo-elemento */
  font-size: 22px;
}

@media screen and (max-width: 768px) {
  .navbar-nav .nav-link {
    font-size: 18px;
  }
}

.navbar-nav .nav-link:hover {
  color: var(--topbar-bg-color) !important;
}

/* Estilo para el enlace activo */
.navbar-nav .nav-link.active {
  color: var(--menu-text-color) !important;
  font-weight: 700;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background-color: var(--menu-text-color);
  border-radius: 2px;
}

/* Body offset para elementos fijos */
body {
  margin-top: 50px;
  padding-top: 110px;
}

/* Carrusel Splide */
.hero-carousel {
  height: auto;
  margin-top: 50px;
}

.splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.slide-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.carousel-content h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Personalización de controles Splide */
.splide__arrows {
  display: flex;
}

.splide__arrow {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.splide__arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.splide__arrow svg {
  fill: white;
}

.splide__pagination {
  bottom: 20px;
}


.splide__pagination__page {

  opacity: 1;
 
}  


.splide__pagination__page {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.7);
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
  opacity: 1 !important;
}

.splide__pagination__page.is-active {
  background: rgb(3, 164, 78);
  border-color: rgb(3, 164, 78);
  transform: scale(1.2);
  opacity: 1 !important;
}

.splide__pagination__page:hover {
  cursor: pointer;
  opacity: 1;
}

/* Sección dos columnas */
.two-column-section {
  padding-top: 100px;
}

.bg-image-column {
  background-image: url("https://images.unsplash.com/photo-1560472354-b33ff0c44a43?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1926&q=80");
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

.content-column {
  display: flex;
  align-items: center;
  padding: 0px 40px;
  text-align: justify;
}

.content-title {
  font-weight: bold;
  font-size: 50px;
  line-height: 50px;
  margin-left: 130px;
  color: var(--text-title);
}

.content-image-container {
  width: 80%;
  text-align: center;
  margin: 0 auto;
}

/* Cards de productos mejoradas */

.product-title {
  font-size: 50px;
  font-weight: bold;
  color: var(--text-title);
  margin-bottom: 20px;
}

.product-card {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  background-repeat: no-repeat;
  margin-bottom: 30px;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  /*  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);*/
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  padding: 0;
  text-align: center;
  min-height: 100%;
}

.product-card:hover .card-overlay {
  /*background: linear-gradient(135deg, rgba(242, 114, 41, 0.9) 0%, rgba(242, 114, 41, 0.8) 100%);*/
}

.card-title {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  left: 50%;
  margin: 0;
  opacity: 1;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  width: 100%;
}

.product-card:hover .card-title {
  transform: translate(-50%, -70%);
}

.card-description {
  color: white;
  font-size: 1rem;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 20px;
}

.product-card:hover .card-description {
  opacity: 1;
  transform: translateY(0);
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
  text-align: center;
}

.product-card:hover .card-features {
  opacity: 1;
  transform: translateY(0);
}

.card-features li {
  color: white;
  font-size: 0.9rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-features li:before {
  content: "✓";
  margin-right: 8px;
  font-weight: bold;
  color: #fff;
}

.card-button {
  background-color: white;
  color: #f2722a;
  border: 2px solid white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.3s;
  display: inline-block;
}

.product-card:hover .card-button {
  opacity: 1;
  transform: translateY(0);
}

.card-button:hover {
  background-color: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .product-title {
    font-size: 30px;
    font-weight: bold;
    color: var(--text-title);
    margin-bottom: 20px;
  }
  .product-card {
    height: 280px;
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .card-overlay {
    padding: 20px;
  }

  .card-button {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}
/* Footer */
.main-footer {
  background-color: var(--bg-footer);
  color: white;
  padding: 60px 0 30px;
}

.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.contact-info p {
  margin-bottom: 8px;
  color: #fff;
}

.contact-info i {
  margin-right: 8px;
  color: white;
}

.boton {
  background-color: var(--bg-boton);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.boton:hover {
  background-color: var(--overlay-color-hover);
  color: white;
  text-decoration: none;
}

.cercano {
  background: var(--menu-bg-color);
  font-size: 1rem;
  width: auto;
  padding: 6px 12px;
  color: white;
  display: inline-block;
  border-radius: 3px;
}

/* Estilos adicionales para WordPress */
.wp-block-image {
  margin: 0 0 1em 0;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1em;
}

/* Estilos para el editor de bloques */
.wp-block-cover {
  background-size: cover;
  background-position: center;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }

  .hero-carousel,
  .splide__slide {
    height: auto;
    margin-top: 30px;
  }

  .carousel-content h1 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 1rem;
  }

  .bg-image-column {
    min-height: 250px;
  }

  .content-column {
    padding: 20px;
  }

  .logo-img {
    height: 33px;
    width: auto;
  }

  .content-title {
    font-size: 2.5rem;
    line-height: 2.5rem;
    margin-left: 130px;
  }

  .two-column-section {
    min-height: auto;
  }

  .social-icons a {
    margin-left: 10px;
    font-size: 16px;
  }

  .product-card {
    height: 200px;
    margin-bottom: 15px;
  }

  .navbar-nav .nav-link {
    margin: 5px 0;
  }
}

@media (max-width: 576px) {
  .content-title {
    font-size: 2rem;
    line-height: 2rem;
    text-align: center;
    margin-left: auto;
  }

  .carousel-content h1 {
    font-size: 1.5rem;
  }

  .product-card {
    height: 150px;
  }

  .card-title {
    font-size: 1.2rem;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1500px;
  }
}

/* Cards de productos simples - NUEVOS ESTILOS */
.product-card-simple {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-simple:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Contenedor de imagen */
.product-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-simple:hover .product-image {
  transform: scale(1.05);
}

/* Contenido debajo de la imagen */
.product-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-title-card {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-title);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-button {
  background-color: var(--bg-boton);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
  align-self: center;
  display: inline-block;
}

.product-button:hover {
  background-color: var(--topbar-bg-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(3, 164, 78, 0.3);
}

/* Responsive para las cards simples */
@media (max-width: 768px) {
  .product-image-container {
    height: 200px;
  }

  .product-title-card {
    font-size: 1.2rem;
  }

  .product-content {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .product-image-container {
    height: 180px;
  }

  .product-title-card {
    font-size: 1.1rem;
  }

  .product-content {
    padding: 12px;
  }
}


/* Cards híbridas - Título sobre imagen, descripción debajo */
.product-card-hybrid {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-hybrid:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Sección de imagen con título superpuesto */
.product-image-section {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(0, 0, 0, 0.3) 0%, 
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.product-card-hybrid:hover .image-overlay {
  background: linear-gradient(
    135deg, 
    rgba(3, 164, 78, 0.7) 0%, 
    rgba(3, 164, 78, 0.8) 100%
  );
}

.title-on-image {
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  padding: 0 15px;
  transition: transform 0.3s ease;
}

.product-card-hybrid:hover .title-on-image {
  transform: scale(1.05);
}

/* Sección de texto debajo de la imagen */
.product-text-section {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-description-below {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.product-button-below {
  background-color: var(--bg-boton);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
  align-self: center;
  display: inline-block;
}

.product-button-below:hover {
  background-color: var(--topbar-bg-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3, 164, 78, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .product-image-section {
    height: 200px;
  }
  
  .title-on-image {
    font-size: 1.4rem;
  }
  
  .product-text-section {
    padding: 15px;
  }
  
  .product-description-below {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .product-image-section {
    height: 180px;
  }
  
  .title-on-image {
    font-size: 1.2rem;
    padding: 0 10px;
  }
  
  .product-text-section {
    padding: 12px;
  }
  
  .product-description-below {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .product-button-below {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

iframe {
	width: 96% !important;
  margin: 10px;
}

