@import url(25-26_dg2a_MediosII_Cdecomic_project\fonts\fonts.css);@import url(./fonts/fonts.css);
@import url(.//col_sys.css);



:root {
    --c-rojo-oscuro: #AA1F23;
    --c-azul-marino: #000054;
    --c-gris: #F3F2F2;
    --c-azul-grisaceo: #086993;
    --c-turquesa: #02ADC7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--c-gris);
    color: var(--c-azul-marino);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* HEADER */

.c-header-top {
    overflow: hidden; 
    padding: 10px 15px;
    background-color: var(--c-turquesa);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.c-logo-small {
    float: left; 
    height: 50px;
    
}

.c-icon-nav {
    float: right;
    text-align: center;
}

.c-icon-nav p{
    display: inline-block;
    font-size: 18px;
    color: var(--c-azul-marino);
    font-weight: 600;
    margin-right: 10px;
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.c-icon-nav button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 25px;
    color:#AA1F23;
    margin-left: 15px;
    margin-top: 13px;
}

.c-icon-nav button:hover {
    color:#ffffff;
    transform: translateY(-3px);
    transition: 0.2s;
}

.c-main-nav {
  width: 100%;
    background-color: var(--c-azul-marino);
  color: var(--c-azul-marino);
}


/* extras */

.c-hidden {
    display: none !important;
}

/* BUSQUEDA */
.c-modal {
    position: fixed;
    z-index: 2000; /* Por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 84, 0.7); /* Azul Marino semi-transparente */
    padding-top: 50px;
}

.c-modal-content {
    background-color: var(--c-gris);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--c-azul-grisaceo);
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s;
}

.c-close-btn {
    color: var(--c-rojo-oscuro);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.c-search-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0 15px 0;
    border: 2px solid var(--c-azul-grisaceo);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.c-search-submit-btn {
    background-color: var(--c-rojo-oscuro);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* MENU HAMBURGUESA */
.c-off-canvas {
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    width: 250px; 
    height: 100%;
    background-color: var(--c-azul-marino);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    color: white;
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
}

.c-off-canvas.c-visible {
    transform: translateX(0); 
}

.c-close-off-canvas-btn {
    color: white;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

.c-off-canvas h4 {
    border-bottom: 2px solid var(--c-turquesa);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.c-off-canvas-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.c-off-canvas-nav a:hover {
    background-color: var(--c-rojo-oscuro);
}

/* LOGIN */

.c-auth-container {
    padding: 30px 20px;
    background-color: white;
    max-width: 450px;
    margin: 30px auto;
    transition-duration: 0,1s;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.c-form-group {
    margin-bottom: 20px;
}

.c-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--c-azul-marino);
}

.c-form-group input[type="email"],
.c-form-group input[type="password"],
.c-form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.c-primary-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--c-rojo-oscuro);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.c-primary-btn:hover {
    background-color: #7f191c; 
}

.c-secondary-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--c-azul-grisaceo);
    text-decoration: none;
}
.c-secondary-link:hover {
    color: var(--c-rojo-oscuro);
}


/* CART */

.c-cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden; 
}

.c-cart-item img {
    float: left;
    margin-right: 15px;
    width: 100px;
}

.c-cart-item {
    display: block;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    margin-left: 20px;
    margin-right: 20px;
}

.c-cart-item-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.c-cart-item-placeholder {
    width: 60px;
    height: 80px;
    background-color: var(--c-azul-grisaceo);
    margin-right: 15px;
    border-radius: 4px;
}
.c-item-actions {
    float: right; 
    text-align: right;
}

.c-item-details {
    overflow: hidden; 
}

.c-cart-details h4 {
    font-size: 1rem;
    color: var(--c-azul-marino);
    margin-bottom: 5px;
    font-weight: 600;
}

.c-cart-details p {
    font-size: 0.85rem;
    color: #555;
}

.c-summary-row {
    padding: 5px 0;
    overflow: hidden; 
}

.c-summary-row span:first-child {
    float: left; 
}

.c-summary-row span:last-child {
    float: right; 
}

.c-item-controls .c-item-price {
    font-weight: 600;
    color: var(--c-rojo-oscuro);
    font-size: 1.1rem;
}

.c-remove-item-btn {
    background: none;
    border: none;
    color: var(--c-rojo-oscuro);
    font-size: 18px;
    cursor: pointer;
}


.c-cart-summary {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}


.c-summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--c-rojo-oscuro);
    padding-top: 10px;
    border-top: 2px dashed #ddd;
    margin-top: 10px;
}




/* COSAS ANIMADAS */

/* NOVEDADES */


@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.c-novedades-wrapper {
    margin: 20px 0;
}

.c-novedades-marquee {
    background-color:#02ADC7;
    color: white;
    padding: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 5px;
    
}

.c-novedades-marquee span {
    display: inline-block;
    padding-left: 100%; 
    animation: marquee 15s linear infinite;}

/* IMAGENES NOVEDADES */

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}


.c-slider-container {
    overflow: hidden;
    width: 100%;
    height: auto;
    max-height: 500px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px; 
    
}

.c-slider-track {
    display: flex;
    transition: transform 1.2s ease-in-out;
    will-change: transform; 
}

.c-slider-item {
    flex: 0 0 120%; 
    width: 100%;
    max-width: 800px;
    height: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.c-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* BODY */

.body {
    padding: 20px 15px;
}

.body img {
    max-width:100%;
    height: auto;
    
}

/* TÍTULO*/

.c-content-section {
    display: block;
    padding: 20px 15px;
    overflow: auto; 
}


.c-content-section img {
    max-width:100%;
    height: auto;
}

h2.c-section-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 40px;
    font-family:"banger";
    color: var(--c-azul-marino);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    padding-top: 10px;
}

.c-section-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-azul-marino);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 5px;
    padding-top: 10px;
}

.c-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--c-rojo-oscuro);
}


/* AREA DE COMIC */


/* CONTENEDOR */
.comic-item {
    position: relative; /* .overlay dentro de este */
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border-radius: 5%;
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
    
}

/* IMAGEN */
.comic-item img {
    display: block;
    width: 100%;
    margin-left: 10px;
     margin-right: 10px;
    transition: transform 0.3s ease; 
}

.comic-item:hover img {
    border-radius: 5%;
    transform: scale(1.05); 
}


/* INFO */
.overlay {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: table;
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 0.4s ease;  
    background-color: rgba(127, 25, 28, 0.5);
    border-radius: 5%; 
    justify-content: center;
    text-align: center;
    padding: 10px;
}

/* Contenido del overlay */

.overlay-content h1 {
    font-size: 100%;
    display: fit-content;
    margin-bottom: 5px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
 
}

.overlay-content p {
    font-size: 100%;
    display: fit-content;
    margin-bottom: 10px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    display: none;  
    text-align: left;

}

/* 7. EL EFECTO: Aparece el overlay al pasar el cursor o al tocar/enfocar */
.comic-item:hover .overlay,
.comic-item:focus-within .overlay { /* focus-within ayuda con la accesibilidad/tap en algunos móviles */
    opacity: 1; /* Hacemos que el overlay sea visible */
}


.comic-item:hover .overlay-content p,
.comic-item:focus-within .overlay-content p {
    display: block; 
}

/* Estilos para el botón de la cesta */
.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: table;
}


.overlay-content button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color:#ffffff;
    margin-top: 5px;
    position: relative; 
    width: 100%;
    height: 100%;
    text-align: center;

}
.overlay-content button:hover {
    color:#02ADC7;
}


/* ver+ */


.c-view-all {
    float: left;
    width:100% ;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 60px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-rojo-oscuro);
    text-decoration: none;
    transition: color 0.2s;
    border: 2px solid transparent; 
    border-color: #7f191c;
    border-radius: 20px;
    position: relative; 
    z-index: 999; 
}

.c-view-all:hover {
    border: 2px solid transparent; 
    border-color: #7f191c ;
    background-color: var(--c-rojo-oscuro);
    color: white;
    border-radius: 20px;
    transform: translateY(-3px);
}

/* HERO CATEGORY */


.c-section1 {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 20px;
    margin-right: 5px;
     margin-left: 5px;
}


/* FOOTER */


.c-footer {
    width: 100%;
    background-color: var(--c-turquesa);
    text-align: center;
    color: white;
    padding-top: 20px; 
   
}

.c-footer-logo img {
    width: 150px;
    margin-bottom: 20px;
}

.c-footer-contact {
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
}

.c-footer-contact button {
    background: none;
    border: none;
    color: rgb(255, 255, 255);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-right: 20px;
    margin-left: 20px;
    gap:50px;
}

.c-footer-contact button:hover {
    transform: translateY(-7px);
    color:#000054;
    transition: 0.2s;
}

.c-footer-map {
    padding: 10px 0; 
}

.c-footer-map iframe {
    display: block;
    width: 100%;
    border-radius: 3%;
    padding-right: 10px;
    padding-left: 10px;
}


.c-copyright {

    font-size: 0.75rem;
    margin-top: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    background-color: var(--c-azul-marino);
}



