:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #4CAF50;
    --text-color: #333;
    --background-color: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 30px;
}

h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 20px;
}

h4 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.calculator {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 320px;
}

.display {
    margin-bottom: 20px;
}

#result {
    width: 100%;
    height: 60px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: right;
    padding: 0 15px;
    font-size: 24px;
    color: #333;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

button {
    border: none;
    background: #f8f9fa;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background: #e9ecef;
}

.operator {
    background: #e7f5ff;
    color: #339af0;
}

.operator:hover {
    background: #d0ebff;
}

.equals {
    background: #339af0;
    color: white;
    grid-column: span 2;
}

.equals:hover {
    background: #228be6;
}

.results-section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.before-column, .after-column {
    padding: 20px;
    border-radius: var(--border-radius);
}

.before-column {
    background: #ffe0e0;
    border-left: 5px solid #ff0000;
}

.after-column {
    background: #e0ffe0;
    border-left: 5px solid #00ff00;
}

.result-item {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: var(--border-radius);
}

.savings-highlight {
    background: linear-gradient(45deg, #ffd700, #ffeb3b);
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #1a237e;
}

.savings-highlight h3 {
    color: #1a237e;
    font-size: 2.5em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.savings-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 2px solid #1a237e;
    transition: transform 0.3s ease;
}

.savings-item:hover {
    transform: translateY(-5px);
}

.savings-label {
    display: block;
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #1a237e;
    font-weight: 600;
}

.savings-value {
    display: block;
    font-size: 2.2em;
    color: #1a237e;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.benefits-section {
    margin-top: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.benefit-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.cta-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.cta-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.contact-section {
    margin-top: 40px;
    text-align: center;
}

.contact-info {
    margin: 20px 0;
}

#qr-code {
    margin: 20px auto;
    width: 128px;
    height: 128px;
}

.pdf-button-container {
    margin: 30px 0;
    text-align: center;
}

#generate-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 18px;
}

footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-weight: bold;
    color: var(--primary-color);
}

.footer-legal {
    color: #666;
    font-size: 0.9em;
}

.footer-contact {
    display: flex;
    gap: 20px;
}

.footer-email, .whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--primary-color);
}

.whatsapp-link {
    color: #25D366;
}

.whatsapp-link:hover {
    color: #128C7E;
}

.developer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .comparison-grid,
    .savings-grid,
    .benefits-grid,
    .cta-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        justify-content: center;
    }
    
    .savings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .savings-highlight h3 {
        font-size: 2em;
    }
    
    .savings-value {
        font-size: 1.8em;
    }
    
    .savings-label {
        font-size: 1.2em;
    }
}

.modes-section {
    margin: 20px 0;
}

.mode-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background-color: #4CAF50;
    color: white;
}

.result-label {
    color: #2c3e50;
    font-weight: bold;
}

.result-value {
    color: #4CAF50;
    font-weight: bold;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.footer {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    animation: slideIn 1s ease-out;
}

.footer-legal {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-email {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-email:hover {
    color: #f1c40f;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #25d366;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #128c7e;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

.developer {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Protección básica */
img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Marca de agua sutil */
.container::after {
    content: 'GENPAR © 2025';
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1000;
}

/* Estilos para el botón de PDF */
.pdf-button-container {
    margin: 20px 0;
}

#generatePDF {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#generatePDF:hover {
    background-color: #c0392b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#generatePDF:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Asegurar que el SVG se alinee correctamente */
#generatePDF svg {
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .calculator {
        margin: 10px;
        padding: 15px;
    }
    
    button {
        padding: 12px;
        font-size: 16px;
    }
    
    #result {
        height: 50px;
        font-size: 20px;
    }
}

.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    max-height: 200px;
    overflow-y: auto;
}

.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(26, 35, 126, 0.2);
}

.input-group select option {
    padding: 10px;
    font-size: 16px;
}

.input-group select option:hover {
    background-color: #f0f2f5;
}

/* Estilo para el scroll del select */
.input-group select::-webkit-scrollbar {
    width: 8px;
}

.input-group select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.input-group select::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.input-group select::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.calculator-section {
    background: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    border: 3px solid #1a237e;
}

.calculator-section h2 {
    color: #1a237e;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    color: #1a237e;
    font-size: 1.2em;
    font-weight: 600;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #1a237e;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background-color: white;
}

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a237e'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.btn-primary {
    background: linear-gradient(45deg, #1a237e, #3949ab);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #3949ab, #1a237e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(26, 35, 126, 0.2);
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 25px;
    }
    
    .calculator-section h2 {
        font-size: 1.8em;
    }
    
    .input-group label {
        font-size: 1.1em;
    }
    
    .input-group input,
    .input-group select {
        font-size: 1em;
        padding: 12px;
    }
    
    .btn-primary {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}

.notes-section {
    background: white;
    padding: 35px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    border: 3px solid #1a237e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.notes-section h3 {
    color: #1a237e;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notes-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.note-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 2px solid #1a237e;
}

.note-item h4 {
    color: #1a237e;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
}

.note-item ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.note-item li {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.4;
}

.note-item li:before {
    content: "•";
    color: #1a237e;
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .notes-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .notes-section {
        padding: 25px;
    }
    
    .notes-section h3 {
        font-size: 1.8em;
    }
    
    .note-item h4 {
        font-size: 1.2em;
    }
    
    .note-item li {
        font-size: 1em;
    }
}

.formulas-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 2px solid #1a237e;
}

.formulas-section h4 {
    color: #1a237e;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.formulas-intro {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

.formula-group {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.formula-group h5 {
    color: #1a237e;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
}

.formula-group p {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.formula-box {
    background: #f0f4ff;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid #1a237e;
    margin-top: 15px;
}

.formula-box p {
    color: #1a237e;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .formulas-section {
        padding: 20px;
    }
    
    .formulas-section h4 {
        font-size: 1.5em;
    }
    
    .formula-group h5 {
        font-size: 1.2em;
    }
    
    .formula-box p {
        font-size: 1em;
    }
}

.contact-cta-section {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 40px 0;
    color: white;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-cta-section h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-cta-text {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #ffd700;
    font-weight: 600;
}

.contact-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.contact-cta-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.contact-cta-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.contact-cta-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contact-cta-link.whatsapp {
    background: #25D366;
}

.contact-cta-link.whatsapp:hover {
    background: #128C7E;
}

.contact-cta-logo {
    flex: 1;
    text-align: center;
}

.genpar-logo-large {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.contact-cta-logo h4 {
    font-size: 2em;
    color: #ffd700;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .contact-cta-section {
        padding: 30px 20px;
    }

    .contact-cta-section h3 {
        font-size: 2em;
    }

    .contact-cta-text {
        font-size: 1.2em;
    }

    .contact-cta-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-cta-link {
        font-size: 1.1em;
        padding: 12px 20px;
    }

    .genpar-logo-large {
        width: 150px;
    }

    .contact-cta-logo h4 {
        font-size: 1.6em;
    }
}

.contact-form {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #ffd700;
    font-size: 1.1em;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: #ffd700;
    color: #1a237e;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.submit-btn:hover {
    background: #ffed4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1em;
        padding: 10px;
    }

    .submit-btn {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}

.contact-info p {
    color: #1a237e;
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
    display: inline-block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .contact-info p {
        font-size: 14px;
    }
} 