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

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body{
background-color: #121B21;
display: grid;

}


.compra-container {
display: flex;
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
gap: 30px;
}

/* Estilos del sidebar */
.sidebar {
width: 280px;
flex-shrink: 0;
background-color: var(--apple-light-gray);
border-radius: 12px;
padding: 20px;
position: sticky;
top: 20px;
height: fit-content;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar h2 {
font-size: 20px;
margin-bottom: 15px;
color: var(--apple-dark-gray);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding-bottom: 10px;
}

.sidebar-steps {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 30px;
}

.sidebar-steps li {
padding: 8px 12px;
border-radius: 8px;
transition: background-color 0.2s ease;
}

.sidebar-steps li:hover {
background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-steps li.active {
background-color: var(--apple-blue);
}

.sidebar-steps li.active a {
color: #000;
font-weight: 500;
}

.sidebar-steps a {
display: block;
color: var(--apple-dark-gray);
font-size: 14px;
}

.sidebar-resumen {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-resumen h3 {
font-size: 16px;
margin-bottom: 15px;
color: var(--apple-dark-gray);
}

.resumen-item {
background-color: white;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
}

.resumen-item p {
margin-bottom: 5px;
font-size: 14px;
color: var(--apple-medium-gray);
}

.precio {
color: var(--apple-dark-gray);
font-weight: 500;
}

.resumen-total {
display: flex;
justify-content: space-between;
padding: 15px 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.precio-total {
color: var(--apple-dark-gray);
font-weight: 600;
font-size: 18px;
}

/* Estilos del contenido principal */
.compra-main {
flex: 1;
}

.compra-section {
margin-bottom: 40px;
background-color: white;
border-radius: 12px;
padding: 30px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.compra-section h1 {
font-size: 32px;
margin-bottom: 20px;
color: var(--apple-dark-gray);
}

.compra-section h2 {
font-size: 24px;
margin-bottom: 20px;
color: var(--apple-dark-gray);
}

.producto-detalle {
display: flex;
gap: 30px;
margin-top: 20px;
}

.producto-imagen {
width: 40%;
}

.producto-imagen img {
width: 100%;
border-radius: 8px;
}

.producto-info {
width: 60%;
}

.producto-descripcion {
color: var(--apple-medium-gray);
line-height: 1.5;
margin: 15px 0;
}

.producto-precio {
font-size: 18px;
margin-top: 30px;
}

.producto-precio .precio {
font-size: 24px;
font-weight: 600;
color: var(--apple-dark-gray);
}

/* Opciones de configuración */
.config-option {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.config-option h3 {
font-size: 18px;
margin-bottom: 15px;
color: var(--apple-dark-gray);
}

.color-options,
.storage-options,
.connectivity-options {
display: flex;
flex-wrap: wrap;
gap: 15px;
}

.color-option,
.storage-option,
.connectivity-option {
position: relative;
}

.color-option input,
.storage-option input,
.connectivity-option input {
position: absolute;
opacity: 0;
cursor: pointer;
}

.color-option label,
.storage-option label,
.connectivity-option label {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 15px;
background-color: var(--apple-light-gray);
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
}

.color-circle {
width: 20px;
height: 20px;
border-radius: 50%;
display: inline-block;
}

.space-gray {
background-color: #8e8e93;
}

.silver {
background-color: #e4e4e4;
}

.purple {
background-color: #9370db;
}

.blue {
background-color: #5ac8fa;
}

.storage-size, 
.connectivity-type {
font-weight: 500;
}

.storage-price,
.connectivity-price {
color: var(--apple-medium-gray);
font-size: 14px;
}

/* Botón de acción */
.compra-action {
margin-top: 30px;
text-align: center;
}

.btn-continuar {
background-color: var(--apple-blue);
color: white;
border: none;
padding: 12px 30px;
border-radius: 8px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease;
}

.btn-continuar:hover {
background-color: #005bbf;
}

.entrega-info {
margin-top: 15px;
color: var(--apple-medium-gray);
font-size: 14px;
}

/* Media Queries para responsividad */
@media (max-width: 1024px) {
.compra-container {
  flex-direction: column;
}

.sidebar {
  width: 100%;
  position: static;
  margin-bottom: 30px;
}

.sidebar-steps {
  flex-direction: row;
  overflow-x: auto;
  padding-bottom: 10px;
}

.sidebar-steps li {
  white-space: nowrap;
}
}

@media (max-width: 768px) {
.producto-detalle {
  flex-direction: column;
}

.producto-imagen,
.producto-info {
  width: 100%;
}

.compra-section {
  padding: 20px;
}

.color-options,
.storage-options,
.connectivity-options {
  justify-content: center;
}
}

@media (max-width: 480px) {
.compra-container {
  padding: 20px 10px;
}

.sidebar-steps {
  flex-direction: column;
}

.compra-section h1 {
  font-size: 24px;
}

.compra-section h2 {
  font-size: 20px;
}

.btn-continuar {
  width: 100%;
}
}