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

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    background: url("../img/fondogeneral.webp") center/cover no-repeat;
	background-repeat: no-repeat;
	background-attachment: fixed;
    color: #333;
}

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
}

/* Estado inicial (sobre hero) */
header.transparent {
    background: rgba(255, 255, 255, 0.08);
}

/* Estado al hacer scroll */
header.scrolled {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

/* Container */
.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo img {
    height: 55px;   /* Tamaño principal */
    width: auto;
    transition: all 0.4s ease;
}


header.scrolled .logo img {
    height: 60px;   /* Se reduce elegantemente */
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    justify-content: flex-end;
}

nav a {
	color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Línea animada */
nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: #0284c7;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Animación elegante */
@keyframes fadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



/* ===== INICIO ===== */
.inicio {
	margin-top: 90px;
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.inicio-content {
    position: relative;
    max-width: 800px;
    padding: 10px;
}

.inicio h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.inicio p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* ===== PRODUCTOS ===== */
.productos {
	margin-top: 10px;
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.productos::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.productos-content {
    position: relative;
    max-width: 800px;
    padding: 10px;
}

.productos h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.productos p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* ===== SERVICIOS ===== */
.servicios {
	margin-top: 10px;
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.servicios::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.servicios-content {
    position: relative;
    max-width: 800px;
    padding: 10px;
}

.servicios h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.servicios p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* ===== DANA ===== */
.dana {
	margin-top: 60px;
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.dana::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.dana-content {
    position: relative;
    max-width: 800px;
    padding: 10px;
}

.dana h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.dana p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* ===== ZF ===== */
.zf {
	margin-top: 10px;
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.zf::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.zf-content {
    position: relative;
    max-width: 800px;
    padding: 10px;
}

.zf h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.zf p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* ===== BOTONES ===== */
.btn {
	margin-top: 10px;
    background: #0284c7;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: #0369a1;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    /*background: #22c55e; */
	background: #5190df;
    padding: 8px 16px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

/* ===== SECTIONS ===== */
.section {
		margin-top: 90px;
		color: white;
		display: flex;
    padding: 70px 5%;
    text-align: center;
}

.section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

/* ===== CARDS PRODUCTO===== */
.cards-producto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
	max-height: 250px;
}

.card-producto {
  /*  background: grey; */
    background:#232222;
	opacity: 0.75;
	font-weight: bold;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

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

.card-producto h3 {
    margin-bottom: 15px;
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
	max-height: 250px;
}

.card {
  /*  background: grey; */
    background:#232222;
	opacity: 0.75;
	font-weight: bold;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

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

.card h3 {
    margin-bottom: 15px;
}

ul {
  list-style-type: none; /* Elimina los puntos */
  margin: 0;             /* Quita margen predeterminado */
  padding: 0;            /* Quita sangría predeterminada */
}

/* SLIDER */
.slider {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  text-align: center;
  color: white;
}

.slide img {
	width: 300px;
	height: auto;
/*  width: 100%;
  height: 80vh; */
  object-fit: cover;
}

/* ===== FORM ===== */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

input, textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

textarea {
    resize: none;
    height: 120px;
}

/* ===== CONTACTO ===== */
.page {
    margin-top: 70px;
    padding: 30px 0 60px;
}
.contact-card {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 5px 25px;
    background: rgba(35, 34, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.contact-card h1 {
    margin-bottom: 5px;
    color: #f2f5f8;
    font-size: 2rem;
    text-align: center;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row label {
    color: #edf2f7;
    font-weight: 600;
}
input, textarea {
    width: 100%;
    background: #f7f9fb;
    color: #222;
}
#form-alert {
    margin-top: 6px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid transparent;
}
#form-alert[style*="display:block"] {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== FOOTER ===== */
footer {
	background: rgba(255, 255, 255, 0.05);
    /*background: #0f172a; */
	 backdrop-filter: blur(2px);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 0px;
}

/* CONTENEDOR */

.carousel-container{
    width:100%;
    max-width:1100px;
    margin:auto;
    position:relative;
    perspective:1200px;
    padding:60px 0;
}

/* CAROUSEL */

.carousel{
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    height:420px;
}

/* ITEMS */

.carousel-item{
    position:absolute;
    width:260px;
    transition:all .7s ease;
    text-align:center;
    opacity:.5;
    transform:scale(.8);
}

.carousel-item img{
    width:75%;
	height:75%; 
    border-radius:12px;
    box-shadow:0 20px 40px rgba(0,0,0,.3);
}

/* TEXTO */

.carousel-caption{
    margin-top:12px;
}

.carousel-caption h3{
    font-size:18px;
    margin:4px 0;
}

.carousel-caption p{
    font-size:14px;
    opacity:.8;
}

/* POSICIONES */

.carousel-item.center{
    transform:scale(1.15);
    opacity:1;
    z-index:3;
}

.carousel-item.left{
    transform:translateX(-320px) scale(.9);
    z-index:2;
}

.carousel-item.right{
    transform:translateX(320px) scale(.9);
    z-index:2;
}

.carousel-item.hidden{
    opacity:0;
    pointer-events:none;
}

/* BOTONES */

.carousel-btn{
    position:absolute;
    top:30%;
    transform:translateY(-50%);
    background:#000;
    color:#fff;
    border:none;
    font-size:28px;
    width:45px;
    height:45px;
    border-radius:50%;
    cursor:pointer;
    opacity:.7;
	z-index: 10;
}

.carousel-btn:hover{
    opacity:1;
}

.prev{
    left:0;
}

.next{
    right:0;
}

/* RESPONSIVE */

@media(max-width:768px){

.carousel-item.left{
    transform:translateX(-200px) scale(.85);
}

.carousel-item.right{
    transform:translateX(200px) scale(.85);
}

}


@media (max-width: 768px) {

    nav ul {
        position: absolute;
        top: 80px;
        right: 5%;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        width: 240px;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);

        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    nav a {
        color: #0f172a !important;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: white;
    }

    header.scrolled .menu-toggle {
        color: #0f172a;
    }
}

.hamburger{
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}

.hamburger span{
  width:28px;
  height:3px;
  background:#111;
  transition:0.4s ease;
  border-radius:2px;
}

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

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

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

[data-animate]{
  opacity:0;
  transform:translateY(40px);
  transition:1s cubic-bezier(.16,1,.3,1);
}

[data-animate].active{
  opacity:1;
  transform:translateY(0);
}
