/* ========================================
   NEW CARDS STYLES - concept6
   Solo estilos de cards (no modifica logo ni otros)
   ======================================== */

/* Variables CSS necesarias para las cards */

:root {
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.08);
  --accent-pink: #ff66c4;
  --accent-blue: #049eea;
  --accent-dark-blue: #003f67;
  --accent-green: #95ae73;
  --text-primary: #0f172a;
}

/* Contenedor de la sección Apps: limita ancho y añade padding lateral */
#apps .wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px clamp(16px, 4vw, 80px);
  box-sizing: border-box;
}

@media (max-width: 480px) {
  #apps .wrap {
    padding: 34px 30px;
  }
}

/* Section */
.section-title {
  font-size: clamp(24px, 8vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  color: var(--text-primary);
  text-align: center;
}

.section-description {
  font-size: clamp(20px, 3vw, 40px);
  /* font-weight: 800; */
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  color: var(--text-primary);
  text-align: center;
}

/* Grid de apps responsive */
/* Por defecto: 1 columna */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(90px, 4vw, 100px);
  margin: 0 auto 120px;
}

/* 2 columnas cuando hay ancho suficiente (más tarde que antes para que en pantallas medianas siga 1 columna) */
@media (min-width: 900px) {
  .apps-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Card de aplicación con propiedades responsive */
.app-card {
  background: var(--card-bg);
  background-size: cover;
  background-position: center;
  /* border-radius: 16px; */
  padding: clamp(16px, 2vw, 32px);
  padding-top: calc(clamp(16px, 2vw, 32px) + (clamp(90px, calc(35px + 6.64vw), 180px) / 2));
  backdrop-filter: blur(10px);
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 16px);
  text-align: left;
  justify-content: flex-start;
  position: relative;
  /* box-shadow: inset 0 0 0 4px rgb(0, 0, 0); */
  width: 100%;
  height: auto; 
  min-height: clamp(260px, 20vh, 360px);
  /* Asegurar que el padding está incluido en el ancho total */
  box-sizing: border-box;
  overflow: visible; /* permitir que el icono sobresalga */
}

/* Fondos de cards*/
.app-card.app-speaker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/apps/speaker-wave-cleaner-pro/SCP_background_1x1.webp');
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  z-index: -1;
  border-radius: 50px;
}

.app-card.app-sound::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/apps/sound-meter-master/SMM_background_1x1.webp');
  background-size: cover;
  background-position: center;
  /* filter: blur(3px); */
  z-index: -1;
  border-radius: 50px;
}

.app-card.app-pomodoro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/apps/Pomodoro-Timer/PT_background_1x1.webp');
  background-size: cover;
  background-position: left;
  /* filter: blur(2px); */
  z-index: -1;
  border-radius: 50px;
}

/* Desktop/Tablet: usar imagen panorámica 1x2 */
@media (min-width: 768px) {
  .app-card.app-speaker::before {
    background-image: url('../img/apps/speaker-wave-cleaner-pro/SCP_background_1x2.webp');
  }

  .app-card.app-sound::before {
    background-image: url('../img/apps/sound-meter-master/SMM_background_1x2.webp');
  }

  .app-card.app-pomodoro::before {
    background-image: url('../img/apps/Pomodoro-Timer/PT_background_1x2.webp');
  }
}

/* Icono con tamaños que se adaptan continuamente */
.app-icon {
  width: clamp(90px, calc(35px + 6.64vw), 180px);
  height: clamp(90px, calc(35px + 6.64vw), 180px);
  border-radius: clamp(35px, 3vw, 60px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: clamp(7px, 0.5vw, 10px) solid white;
  z-index: 2; /* encima del fondo ::before */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 200ms ease;
}

.app-card.app-speaker .app-icon {
  background-image: url('../img/apps/speaker-wave-cleaner-pro/icon/SCP_icon.webp');
}

.app-card.app-sound .app-icon {
  background-image: url('../img/apps/sound-meter-master/icon/SMM_icon.webp');
}

.app-card.app-pomodoro .app-icon {
  background-image: url('../img/apps/Pomodoro-Timer/icon/Pomodoro_icon.webp');
}

/* Título de card: tipografía fluida */
.app-card-title-1 {
  margin: 0;
  font-size: clamp(20px, 1.6vw + 10px, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.app-card-title-2-SCP {
  margin: 0;
  font-size: clamp(20px, 1.6vw + 10px, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent-pink);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.app-card-title-2-SMM {
  margin: 0;
  font-size: clamp(20px, 1.6vw + 10px, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent-dark-blue);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.app-card-title-2-PT {
  margin: 0;
  font-size: clamp(20px, 1.6vw + 10px, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent-green);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Descripción de card: tipografía fluida */
.app-card-description {
  margin: 0;
  font-size: clamp(16px, 0.7vw + 10px, 50px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.app-cards-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

/* Features: tipografía fluida */
.app-cards-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 0.7vw + 10px, 50px);
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.app-cards-feature::before {
  content: '→';
  /* color: var(--accent-pink); */
  font-weight: bold;
}

.app-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  justify-content: center;
}

.app-link {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 102, 196, 0.1);
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--border-color);
  transition: all 200ms ease;
}

.app-link:hover {
  background: rgba(255, 102, 196, 0.2);
  border-color: var(--accent-pink);
}

/* Botón badge que se adapta continuamente */
.badge-btn {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: clamp(110px, calc(100.5px + 3.87vw), 150px);
  height: clamp(37px, calc(33px + 1.33vw), 50px);
  display: inline-block;
  text-indent: -9999px;
  border: none;
  cursor: pointer;
}

.badge-btn.google-play {
  background-image: url('../img/badge-buttons/google-play-badge.svg');
  /* El SVG de Google Play suele traer más "aire" interno, lo escalamos un poco */
  background-size: 100% auto;
}

.badge-btn.app-store {
  background-image: url('../img/badge-buttons/App_Store_Badge_US-UK.svg');
}