/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

/* Barra de navegación */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container .logo {
    width: 45px;
    height: 45px;
}

.logo-text {
    margin-left: 10px;
}

.logo-text h1 {
    font-size: 1.3rem;
    color: #2b5797;
    margin: 0;
    font-weight: 600;
}

.logo-text p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2b5797;
}

/* Sección principal */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../imagenes/fondo.jpg');
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 70px);
    display: flex;
    padding: 2rem 8%;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-content {
    flex: 0 1 600px;
    color: white;
    padding-top: 2rem;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    white-space: nowrap;
}

.hero-content h2 {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.price-container {
    margin-bottom: 2.5rem;
}

.price-tag {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-tag span {
    font-weight: bold;
}

.aranceles {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.consultation-form {
    background: rgba(0, 113, 188, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
}

.vehicle-type {
    display: flex;
    gap: 6rem;
    margin-bottom: 1.2rem;
    justify-content: center;
}

.vehicle-type label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
}

.vehicle-type input[type="radio"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid white;
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
}

.vehicle-type input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.patent-input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    background: white;
}

.submit-button {
    width: 100%;
    padding: 0.8rem;
    background-color: #dc0a17;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    letter-spacing: 0.5px;
    position: relative;
}

.submit-button:disabled {
    background-color: #dc0a17;
    opacity: 0.8;
    cursor: not-allowed;
}

.button-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.submit-button i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #b30813;
}

.location-text {
    text-align: center;
    color: white;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Sección de ejemplo */
.example-section {
    flex: 0 1 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    padding-right: 2rem;
}

.example-button {
    background-color: white;
    color: #0077cc;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5.5rem;
    cursor: pointer;
    display: inline-block;
}

.example-button:hover {
    background-color: #f0f0f0;
}

.example-container {
    text-align: right;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.example-image {
    width: 100%;
    max-width: 300px;
    height: 320px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    transition: filter 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    margin-left: auto;
    width: 300px;
}

.image-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.example-container:hover .image-overlay {
    opacity: 1;
}

.example-caption {
    position: absolute;
    bottom: -30px;
    right: 0;
    color: white;
    text-align: right;
    font-size: 0.85rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 8px;
    max-width: 90%;
    width: 800px;
    position: relative;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.modal-footer-text {
    color: #666;
    font-style: italic;
    margin: 1rem 0;
}

.modal-close-button {
    background-color: #0077cc;
    color: white;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.modal-close-button:hover {
    background-color: #0066b3;
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 1rem;
        align-items: center;
        min-height: auto;
    }

    .hero-content {
        flex: none;
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding-top: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        white-space: normal;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .price-container {
        margin-bottom: 1.5rem;
    }

    .price-tag {
        font-size: 1.3rem;
        justify-content: center;
    }

    .aranceles {
        font-size: 1rem;
    }

    .consultation-form {
        width: 100%;
        padding: 1.5rem;
        margin: 0;
        max-width: 500px;
    }

    .vehicle-type {
        gap: 4rem;
        margin-bottom: 1.2rem;
    }

    .vehicle-type label {
        font-size: 1.1rem;
    }

    .vehicle-type input[type="radio"] {
        width: 20px;
        height: 20px;
    }

    .patent-input {
        padding: 0.8rem;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        height: 45px;
    }

    .submit-button {
        padding: 0.8rem;
        font-size: 1.1rem;
        height: 45px;
    }

    .location-text {
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }

    .example-section {
        width: 100%;
        padding: 0;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .example-button {
        margin-left: 0;
        width: auto;
        min-width: 200px;
        text-align: center;
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .example-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }

    .example-image {
        margin: 0;
        width: 100%;
        max-width: 250px;
        height: 280px;
    }

    .image-overlay {
        width: 250px;
        margin: 0 auto;
    }

    .image-overlay span {
        font-size: 1.1rem;
    }

    .example-caption {
        text-align: center;
        position: relative;
        margin-top: 0.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    /* Ajustes para la navegación en móvil */
    .navbar {
        padding: 0.8rem 1rem;
        height: auto;
    }

    .nav-links {
        display: none;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    /* Ajustes para el modal en móvil */
    .modal-content {
        width: 90%;
        max-width: 500px;
        margin: 1rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer-text {
        font-size: 1rem;
    }

    .modal-close-button {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .price-tag {
        font-size: 1.2rem;
    }

    .vehicle-type {
        gap: 3rem;
    }

    .consultation-form {
        padding: 1.2rem;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2b5797;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-group.hidden {
    display: none;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    background: white;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    display: block;
    margin-top: -0.3rem;
    margin-bottom: 0.5rem;
}

.terms-container {
    margin: 1rem 0;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.terms-label input[type="checkbox"] {
    margin-top: 0.3rem;
}

.terms-text {
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
}

.terms-link {
    color: white;
    text-decoration: underline;
}

.terms-link:hover {
    text-decoration: none;
}

/* Ajustes para el formulario en móviles */
@media (max-width: 768px) {
    .form-input {
        padding: 0.8rem;
        font-size: 1.1rem;
        height: 45px;
    }

    .terms-text {
        font-size: 0.9rem;
    }

    .error-message {
        font-size: 0.9rem;
    }
}

/* Estilos para la página de pago */
.payment-container {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.payment-left {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 600px;
}

.payment-right {
    flex: 1;
    background-color: #fff;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.payment-left h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.payment-section {
    margin-bottom: 2rem;
}

.payment-section h2 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.payment-option {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.payment-option:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.payment-text h3 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.payment-text p {
    font-size: 0.85rem;
    color: #666;
    margin: 0.2rem 0 0;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0077cc;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.back-link:hover {
    text-decoration: underline;
}

.payment-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
}

.payment-details {
    max-width: 400px;
    margin: 0 auto;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-logo {
    width: 40px;
    height: 40px;
}

.payment-header h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.payment-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.payment-summary h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #333;
}

.price {
    font-weight: 600;
}

/* Estilos responsive para la página de pago */
@media (max-width: 768px) {
    .payment-container {
        flex-direction: column-reverse;
    }

    .payment-left {
        padding: 1.5rem;
        max-width: 100%;
    }

    .payment-right {
        padding: 1.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .payment-left h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .payment-option {
        padding: 1rem;
    }

    .payment-details {
        margin: 0;
    }
}

/* Estilos para la página de transferencia */
.transfer-container {
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.transfer-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.transfer-content h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.transfer-intro {
    color: #666;
    margin-bottom: 2rem;
}

.transfer-data {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.transfer-data h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.transfer-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-label {
    color: #666;
    min-width: 80px;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.copy-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.copy-button {
    background: #e9ecef;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: #495057;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background: #dee2e6;
}

.file-upload {
    margin-bottom: 1.5rem;
}

.file-upload label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #adb5bd;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.upload-text i {
    font-size: 2rem;
    color: #adb5bd;
}

.file-preview {
    display: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.2rem;
}

.declaration {
    margin-bottom: 2rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 0.3rem;
}

.declaration-text {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .transfer-container {
        padding: 1rem;
    }

    .transfer-content {
        padding: 1.5rem;
    }

    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .copy-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-button {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para la página de éxito */
.success-container {
    min-height: 100vh;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.success-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-content h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.back-home {
    display: inline-block;
    background-color: #0077cc;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.back-home:hover {
    background-color: #0066b3;
}

@media (max-width: 768px) {
    .success-container {
        padding: 1rem;
    }

    .success-content {
        padding: 2rem 1.5rem;
    }

    .success-icon {
        font-size: 3rem;
    }

    .success-content h1 {
        font-size: 1.5rem;
    }
}