/* comprastyle.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #d32323;
    color: white;
    margin: 0px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo img {
    height: 50px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-profile span a {
    color: white;
    text-decoration: none;
}

nav {
    background-color: #bd1f1f;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding: ;2rem 0;
    text-align: center;
    padding-bottom:20px;
}

.search-section {
    margin-bottom: 2rem;
}

.popular-section, .testimonials-section {
    margin: 2rem 0;
}

/* Top Rated Section */
.top-rated {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.top-rated h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #d32323;
}

.commerce-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.commerce-item {
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
    text-align: left;
}

.commerce-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.commerce-item p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

.details-button {
    background-color: #04b5f8;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.details-button:hover {
    background-color: #f9cb0a;
    color:black;
}


/* Estilos específicos para el perfil del comercio */
.left-column {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    font-size:13px;
}

.right-column {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 68%;
}

.profile-header {
    position: relative;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header-background {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.commerce-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.profile-details {
    text-align: center;
}

.profile-details h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333;
}

.profile-details img.verified-icon {
    margin-left: 10px;
    width: 24px;
    height: 24px;
}

.profile-details p {
    font-size: 16px;
    color: #666;
}

.followers {
    font-size: 14px;
    color: #999;
}

.follow-button {
    background-color: #04b5f8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.follow-button:hover {
    background-color: #f9cb0a;
    color:black;
}

.commerce-description p, .contact-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #1e90ff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.reviews-section {
    margin-top: 20px;
}

.reviews-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.errors, .success {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.errors {
    background-color: #f8d7da;
    color: #721c24;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.review-form {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.review-form select, .review-form textarea, .review-form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.review-form button {
    background-color: #04b5f8;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.review-form button:hover {
    background-color: #f9cb0a;
    color:black;
}

.review-list {
    list-style: none;
    padding: 0;
}

.review-list li {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.review-list h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.review-list p {
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
}

.review-list small {
    font-size: 12px;
    color: #999;
}

a {
    color: #1e90ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


label {
    margin-top: 1rem;
}

input {
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background-color: #04b5f8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #f9cb0a;
    color:black;
}



/* Hero Section */
.hero {
    background-image: url('images/cover321.png'); /* Ajusta esta ruta según sea necesario */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    margin: 0px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
}

.hero-button {
    background-color: #04b5f8;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.hero-button:hover {
    background-color: #f9cb0a;
    color:black;
}

/* How It Works Section */
.how-it-works {
    background-color: #f9f9f9;
    padding: 20px 20px;
    text-align: center;
}

.how-it-works .container {
    margin: 0 auto;
}

.how-it-works h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #d32323;
}

.how-it-works .steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.how-it-works .step {
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
    text-align: center;
}

.how-it-works .step h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.how-it-works .step p {
    font-size: 16px;
    color: #666;
}

/* Call to Action Section */
.cta {
    background-color:  #f9cb0a;
    color: black;
    padding: 40px 20px;
    text-align: center;
}

.cta .container {
    max-width: 1200px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #04b5f8;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #04b5f8;
    color:white;
}


.search-container {
    display: flex;
    align-items: center;
    background-color: transparent; /* Color de fondo */
    border-radius: 5px;
    padding: 5px;
    width: 60%;
    margin-top:-20px;
}

.search-container input[type="text"] {
    border: none;
    padding: 10px;
    flex-grow: 1;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-container button {
    background-color: #04b5f8; /* Color del botón */
    border: none;
    color: white;
    padding: 10px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #04b5f8; /* Color del botón al pasar el ratón por encima */
}


.form1 {
    display: flex;
    flex-direction: column;
    width: 700px;
    margin: 0 auto;
    margin-bottom:20px;
}


.form2 {
width:600px;
}

select, textarea
{
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    color:gray;
}

/* Estilos específicos para el tipo de tienda */
/* Estilos específicos para el tipo de tienda */
.tipo-tienda-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom:0px;
    width:100%;
    background-color:;#ccc;
    padding-bottom:30px;
    
}

.tipo-tienda-options {
    display: inline;
    flex-direction: column;
    gap: 10px;
    margin-top:; 0.5rem;
}

.tipo-tienda-options input[type="radio"] {
    display: none; /* Ocultar los botones de radio predeterminados */
}

.tipo-tienda-options label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    color: #666;
}

/* Estilos personalizados para el botón de radio */
.tipo-tienda-options label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform:; translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color:white;
}

.tipo-tienda-options input[type="radio"]:checked + label::before {
    border-color: #1E90FF;
    background-color: #1E90FF;
}

.tipo-tienda-options input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;white;
}

.direccion-container {
    display: none; /* Ocultar por defecto */
    margin-top: 20px;
}

.direccion-container label {
    font-size: 16px;
}

.direccion-container input[type="text"] {
    width: 60%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.verified-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 8px;
}

.logo-container {
    text-align: center;
    margin: 20px;
}

.commerce-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.search-results {
    list-style: none;
    padding: 0;
}

.search-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.search-item:hover {
    transform: scale(1.02);
}

.search-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-container2 {
    margin-right: 15px;
}

.commerce-logo2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.info-container h3 {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.info-container h3 img.verified-icon {
    margin-left: 10px;
    width: 18px;
    height: 18px;
}

.info-container .category, .info-container .country {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.info-container .stars {
    display: flex;
}

.info-container .star {
    font-size: 14px;
    color: #ddd;
}

.info-container .star.filled {
    color: #f39c12;
}

.form3{
    width:80%;
    margin-bottom:20px;
}
