@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,700;1,700&display=swap');

:root {
  /*primary colors */
  --main-color-white: #ffffff;
  --main-color-red: #ed002f;
  /*secondary colors*/
  --secondary-hard-grey: #636466;
  --secondary-medium-gray-2: #8a8c8e;
  --secondary-medium-gray: #b1b1b1;
  --secondary-soft-gray-2: #bec0c2;
  --secondary-soft-gray: #dcddde;
  --secondary-warm-gray: #dcd5cc;
  /*complementary colors*/
  --secondary-hard-red: #ab192d;
  --secondary-orande: #ff9254;
  --secondary-soft-orange: #ffc7a6;
  --secondary-yellow: #ffef82;
  --secondary-soft-yellow: #fff8cc;
  --secondary-green: #00a37d;
  --secondary-soft-green: #00bf9e;
  --extra-web-black: #262626;
  --extra-web-soft-bg-grey: #f1f1f1;

  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  /* Design Tokens */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --border-radius: 20px;
  --border-radius-inputs: 14px;
  --drop-shadow-medium: 0 2px 15px 0 rgba(99, 100, 102, 0.10);
  --drop-shadow-hard: 0 0px 25px 0 rgba(99, 100, 102, 0.18);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Fira Sans', sans-serif;
  background-color: var(--main-color-white);
  color: var(--secondary-hard-grey);
  line-height: 1.6;
  overflow-x: hidden;
}

/*Estilos del loader*/
.loader-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  background-color: var(--main-color-white);
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.fade-out {
  opacity: 0;
}

/*NavBar*/
.superior-bar {
  position: fixed;
  z-index: 99;
  top: 0;
  width: 100vw;
  background-color: rgba(256, 256, 256, 0.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(14px);
  padding: 20px;
}

.logo {
  padding: 15px;
  margin: 0;
  width: auto;
  height: 75px;
}

.logo-verisure {
  padding: 2px;
  padding-right: 30px;
  border-right: 0.5px solid var(--secondary-medium-gray-2);
  height: 50px;
}

.logo-platform {
  padding: 0px;
  padding-left: 20px;
  height: 46px;
  width: auto;
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px;
}


/* Hero Section */
.hero {
  color: var(--main-color-red);
  padding: 4rem 4rem 12rem;
  text-align: right;
  position: relative;
  overflow: hidden;
  background-image: url('img/240816_DIY_vasastan_all_15.png');
  background-size: cover;
  background-position: center;
  width: 90%;
  max-width: 1480px;
  margin: 120px auto 0;
  border-radius: 15px;
}

.hero-content {
  max-width: 100%;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 strong {
  font-weight: 700;
  display: block;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
}

/* Assistance Bar */
.assistance-bar {
  background-color: #f7f2ed;
  color: #262626;
  padding: 1.5rem 2rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #e5dfd9;
  width: 90%;
  max-width: 1480px;
  margin: 20px auto;
  border-radius: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--drop-shadow-medium);
}

.assistance-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.assistance-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.assistance-text p {
  margin: 0;
  line-height: 1.3;
}

.assistance-text strong {
  color: var(--main-color-red);
}

.schedule {
  font-size: 0.8rem;
  color: var(--secondary-medium-gray-2);
  line-height: 1.2;
}

.assistance-divider {
  width: 1px;
  height: 60px;
  background-color: #cdc7c0;
}

.btn-digital {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--main-color-red);
  color: var(--main-color-white);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(237, 0, 47, 0.2);
  white-space: nowrap;
}

.btn-digital:hover {
  background-color: var(--secondary-hard-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 0, 47, 0.3);
}

/* Responsive Assistance Bar */
@media (max-width: 992px) {
  .assistance-bar {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    width: 95%;
  }
  
  .assistance-divider {
    width: 80%;
    height: 1px;
    margin: 0 auto;
  }

  .assistance-item {
    text-align: center;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .assistance-text {
    align-items: center;
  }
}

/* Tech Selection */
.tech-selection {
  padding: 2rem 1rem 3rem;
  width: 90%;
  max-width: 1480px;
  margin: 0 auto;
}

.tech-title-box {
  display: block;
  margin: 0 auto;
  padding: 0.8rem 2.5rem;
  border-radius: 12px;
}

.h2-titles {
  color: var(--main-color-red);
  margin: 15px auto;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.tech-cards {
  display: flex;
  gap: 2.5rem;
}

.tech-card {
  flex: 1;
  background-color: var(--main-color-white);
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--secondary-soft-gray);
  overflow: hidden;
  display: flex;
}

.tech-card-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.tech-img-placeholder {
  width: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-size: 0.9rem;
  color: #666;
  flex-shrink: 0;
}

.tech-img-placeholder img {
  width: 100%;
  height: auto;
  margin-right: 20px;
}

.tech-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-label {
  font-size: 1.2rem;
  color: #636466;
  margin-bottom: 5px;
  font-weight: 400;
}

.tech-name {
  font-size: 2.2rem;
  color: var(--main-color-red);
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.tech-btn-placeholder {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background-color: var(--main-color-white);
  color: var(--main-color-red);
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
  transition: var(--transition);
  width: fit-content;
}

/* States */
.tech-card.active {
  border: 2px solid var(--main-color-red);
  box-shadow: 0 12px 40px rgba(237, 0, 47, 0.12);
  background-color: #f9f9f9;
}

.tech-card.active .tech-btn-placeholder {
  background-color: var(--main-color-red);
  color: var(--main-color-white);
  box-shadow: 0 4px 15px rgba(237, 0, 47, 0.3);
}

.tech-card:not(.active):hover {
  border-color: var(--secondary-soft-gray);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.tech-card:not(.active) .tech-btn-placeholder {
  border: 1px solid #f1f1f1;
}

.tech-card:hover .tech-btn-placeholder {
  background-color: var(--secondary-hard-red);
  color: var(--main-color-white);
}

/* Requirements Section */
.requirements-section {
  padding: 2rem 3rem;
  background-color: #fff;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.requirements-section h2 {
  font-size: 2rem;
  color: var(--main-color-red);
  margin-bottom: 4rem;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.requirement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.req-img-placeholder {
  width: 140px;
  height: 140px;
  background-color: #f8f8f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #aaa;
  border: 1px solid #eee;
  overflow: hidden;
}

.req-img-placeholder img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.requirement-item span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
}

/* Device Selection */
.device-selection {
  padding: 2rem 4rem;
  background-color: var(--extra-web-soft-bg-grey);
}

.device-selection h2 {
  font-size: 2rem;
  color: var(--main-color-red);
  text-align: center;
  margin-bottom: 4rem;
}

.device-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.device-card {
  flex: 0 1 calc(20% - 2rem);
  min-width: 250px;
  background: var(--main-color-white);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--extra-web-soft-bg-grey);
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.device-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--drop-shadow-hard);
  border-color: var(--main-color-red);
}

.device-img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #f9f9f9;
  border-radius: 15px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  overflow: hidden;
}

.device-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.device-card:hover .device-img-placeholder img {
  transform: scale(1.05);
}

.device-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--main-color-red);
  margin-bottom: 1.2rem;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-btn-placeholder {
  display: block;
  padding: 0.8rem;
  background-color: var(--main-color-white);
  color: var(--main-color-red);
  border-radius: 30px;
  font-weight: 700;
  border: 1px solid var(--main-color-red);
  transition: var(--transition);
}

.device-card:hover .device-btn-placeholder {
  background-color: var(--main-color-red);
  color: var(--main-color-white);
}

/* Video Section */
.video-section {
  padding: 2rem 3rem;
  background-color: #fff;
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
  font-size: 2.5rem;
  font-weight: 700;
  color: #444;
}

/* Footer */
.footer {
  padding: 4rem;
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
}

.footer p {
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {

  .tech-cards,
  .requirements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-cards {
    flex-direction: column;
  }
}

@media (max-width: 768px) {

  .header,
  .hero,
  .tech-selection,
  .requirements-section,
  .device-selection,
  .video-section,
  .footer {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .tech-cards {
    gap: 1.2rem;
  }

  .tech-name {
    font-size: 1.5rem;
    color: var(--main-color-red);
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1;
  }

}


@media (max-width: 572px) {

  .logo-verisure {
    padding: 2px;
    padding-right: 23px;
    border-right: 0.5px solid var(--secondary-medium-gray-2);
    height: 38px;
  }

  .logo-platform {
    height: 30px;
    width: auto;
  }

  .hero {
    height: 120px;
    margin-top: 100px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    opacity: 0;
  }

  .hero-content p {
    opacity: 0;
  }

  .h2-titles {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .tech-info {
    padding: 1rem;
  }

  .tech-img-placeholder {
    width: 100px;
    margin-right: 10px;
    align-items: center;

  }

  .tech-img-placeholder img {
    width: 100%;
    height: auto;
    margin-right: 10px;

  }

}


@media (max-width: 370px) {


  .tech-card-content {
    flex-direction: column;
    text-align: center;
  }

  .tech-img-placeholder {
    width: 100%;
    margin-right: 0px;
    justify-content: center;
    padding: 2rem;
    order: -1;
    padding-bottom: 0;
    padding-top: 0.5rem;
  }

  .tech-img-placeholder img {
    margin-right: 0px;

  }

  .tech-btn-placeholder {
    width: 100%;
  }
}