/* =========================
   GLOBAL
========================= */
body {
    margin: 0;
    background: #0d0d0d;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    /* centra horizontal */
    align-items: center;
    /* centra vertical */
    height: 100vh;
    overflow: hidden;
}

.home-card {
  width: 400px;
  height: 550px;
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.8), rgba(20, 20, 20, 0.95));
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  padding: 25px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.home-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.home-card::before,
.home-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fbbf24, rgba(255, 204, 0, 0.1));
  animation: float-card 6s infinite ease-in-out alternate;
}

.home-card::before {
  width: 100px;
  height: 100px;
  top: -30px;
  left: -30px;
}

.home-card::after {
  width: 70px;
  height: 70px;
  bottom: -20px;
  right: -20px;
  animation-delay: 3s;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('/images/logo.png') no-repeat center/contain;
    width: 300px;
    height: 300px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.logo-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-home {
    width: 140px;
    height: auto;
    border-radius: 50%;
    animation: logo-entry 1.2s ease forwards;
    transition: transform 0.3s ease, filter 0.3s ease;
}

@keyframes float-card {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(20px, -20px) scale(1.2);
    opacity: 1;
  }
}

@keyframes logo-entry {
    0% {
        opacity: 0;
        transform: scale(0.6) rotate(-10deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.1) rotate(3deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.logo-home:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.welcome-title {
    font-size: 2rem;
    margin-bottom: 10px;
    z-index: 1;
    position: relative;
    color: #ffcc66;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    z-index: 1;
    position: relative;
}


.slogan {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffcc66;
    margin-bottom: 10px;
}

.subtext {
    font-size: 1rem;
    color: #bbb;
    max-width: 280px;
    margin: 0 auto;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    width: 400px;
    height: 550px;
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.8), rgba(20, 20, 20, 0.95));
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    padding: 25px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.card::before,
.card::after {
    pointer-events: none;
}

.card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.date {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 10px;
}

.temp {
    font-size: 4.5rem;
}

.icon img {
    width: 90px;
    margin: 20px 0;
}

.condition {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.week {
    text-align: left;
    margin-top: 30px;
}

.week h3 {
    font-size: 1.2rem;
}

.week li {
    font-size: 1rem;
}

.week ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card::before, .card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24, rgba(255, 204, 0, 0.1));
    animation: float-card 6s infinite ease-in-out alternate;
}

.card::before {
    width: 100px;
    height: 100px;
    top: -30px;
    left: -30px;
}

.card::after {
    width: 70px;
    height: 70px;
    bottom: -20px;
    right: -20px;
    animation-delay: 3s;
}

@keyframes float-card {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(20px, -20px) scale(1.2);
        opacity: 1;
    }
}

.contact-card {
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.form-group {
    width: 100%;
    max-width: 320px;
}


.contact-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffcc66;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    transition: background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    text-decoration: none;  
    background: linear-gradient(135deg, #ff4444, #ff8800);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;       
    text-align: center;          
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ff8800, #ff4444);
    transform: scale(1.05);
}

.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background 0.3s ease;
}

.contact-form select:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.contact-form select option {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}


#lightning-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: #0d0d0d;
}

.monitoreo-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.monitoreo-card .welcome-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffcc66; 
    letter-spacing: 1px;
    text-align: center;
}

.monitoreo-card .welcome-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 25px auto;
    color: #ddd;
    text-align: center;
}

.productos-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.productos-card .welcome-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffcc66; 
    letter-spacing: 1px;
    text-align: center;
}

.productos-card .welcome-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 25px auto;
    color: #ddd;
    text-align: center;
}


