/* ================================
   RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================
   GENERAL
================================ */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  line-height: 1.6;
}

/* ================================
   NAVBAR
================================ */
.custom-nav {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.brand-text{
font-weight:600;
font-size:17px;
color:white;
letter-spacing:.5px;
}

/* ================================
LOGO PRCODEWORKS
================================ */

.logo-prcodeworks{
height:38px;
width:auto;
object-fit:contain;
}

/* Alineacion navbar */

.navbar-brand{
display:flex;
align-items:center;
gap:10px;
}

/* ================================
   HERO
================================ */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(2,6,23,.85), rgba(2,6,23,.85)),
              url('https://images.unsplash.com/photo-1555066931-4365d14bab8c');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-productos {
  height: 60vh;
  background: linear-gradient(rgba(2,6,23,.85), rgba(2,6,23,.85)),
              url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.overlay {
  max-width: 700px;
}

/* ================================
   TITULOS
================================ */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #0ea5e9;
  display: block;
  margin: 10px auto 0;
  border-radius: 10px;
}

/* ================================
   SECCIONES
================================ */
.features {
  padding: 90px 0;
}

.bg-light {
  background: #f8fafc;
}

/* ================================
   CARDS
================================ */
.cards {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px auto 0;
  max-width: 1000px;
}

.feature {
  background: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  width: 280px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  text-align: center;
  transition: 0.3s;

  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* ================================
   ICONOS
================================ */
.icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;

  background: #e0f2fe;
  color: #0284c7;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  transition: 0.3s;
}

.feature:hover .icon {
  background: #0ea5e9;
  color: white;
}

/* ================================
   BOTONES
================================ */
.btn-primary {
  background: #0ea5e9;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #0284c7;
}

.btn-card {
  margin-top: 20px;
  padding: 10px 15px;
  background: #0f172a;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-card:hover {
  background: #0ea5e9;
}

/* ================================
   NOSOTROS
================================ */
#nosotros p {
  max-width: 600px;
  margin: 0 auto;
}

#nosotros .feature {
  border-radius: 25px;
}

/* FOTO PERFIL */
.profile-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #0d6efd;
  color: white;
  font-size: 28px;

  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* AVATARES */

.profile-img{
background-image: url("../img/avatares.png");
background-size: 200%;
background-repeat: no-repeat;
background-color: transparent;
}

/* HOMBRE */

.avatar-hombre{
background-position: left center;
}

/* MUJER */

.avatar-mujer{
background-position: right center;
}

/* ================================
   CONTACTO
================================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto 50px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
}

.form-control:focus {
  box-shadow: none;
  border-color: #0ea5e9;
}

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

.contact-card {
  background: white;
  padding: 20px;
  border-radius: 20px;

  display: flex;
  align-items: center;
  gap: 15px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-avatar {
  width: 50px;
  height: 50px;
  background: #0d6efd;
  color: white;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   PRODUCTOS
================================ */
.producto-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #64748b;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.galeria img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: 0.3s;
  cursor: pointer;
}

.galeria img:hover {
  transform: scale(1.03);
}

/* ================================
   MODAL
================================ */
.modal-backdrop.show {
  opacity: 0.9;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 28px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10;
}

.modal-nav:hover {
  background: rgba(0,0,0,0.8);
}

.modal-nav.prev {
  left: 10px;
}

.modal-nav.next {
  right: 10px;
}

/* ================================
   WHATSAPP
================================ */

.whatsapp-float{
position:fixed;
bottom:25px;
right:25px;
width:55px;
height:55px;
background:#25D366;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 5px 15px rgba(0,0,0,.3);
z-index:999;
transition:.3s;
position:fixed;
}

/* CONTENEDOR RELATIVO */

.whatsapp-float{
position:fixed;
bottom:25px;
right:25px;
display:flex;
align-items:center;
justify-content:center;
width:55px;
height:55px;
background:#25D366;
border-radius:50%;
box-shadow:0 5px 15px rgba(0,0,0,.3);
z-index:999;
transition:.3s;
}

/* HOVER */

.whatsapp-float:hover{
transform:scale(1.08);
}

/* ICONO NITIDO */

.whatsapp-float img{
width:30px;
height:30px;
filter:none;
}

/* TOOLTIP */

.whatsapp-tooltip{
position:absolute;
right:65px;
top:50%;
transform:translateY(-50%);
background:#111827;
color:white;
padding:8px 14px;
border-radius:8px;
font-size:14px;
white-space:nowrap;
opacity:0;
pointer-events:none;
transition:all .25s ease;
}

/* FLECHA */

.whatsapp-tooltip::after{
content:"";
position:absolute;
right:-6px;
top:50%;
transform:translateY(-50%);
border-left:6px solid #111827;
border-top:6px solid transparent;
border-bottom:6px solid transparent;
}

/* HOVER */

.whatsapp-float:hover .whatsapp-tooltip{
opacity:1;
right:70px;
}

/* ================================
   ANIMACIONES
================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 32px;
  }
}