/* 
 * FinExacto - Main Stylesheet
 * Color Palette:
 * - Turquoise: #007D8C
 * - Coral: #FF6B6B
 * - Cream: #FFF8F0
 * - Graphite: #2E2E2E
 * - Light Green: #C8E6C9
 */

/* ==== Base Styles ==== */
:root {
    --turquoise: #007D8C;
    --coral: #FF6B6B;
    --cream: #FFF8F0;
    --graphite: #2E2E2E;
    --light-green: #C8E6C9;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--graphite);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--turquoise);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--coral);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--graphite);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--coral);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}

/* ==== Buttons ==== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--turquoise);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--coral);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--turquoise);
}

.btn-secondary {
    background-color: var(--coral);
}

/* ==== Header ==== */
.site-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 160px;
    height: 40px;
}

.logo-svg.small {
    width: 120px;
    height: 30px;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
}

.main-nav .nav-list li:not(:last-child) {
    margin-right: 1.5rem;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: 1rem;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--graphite);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 9px;
}

.menu-icon span:nth-child(3) {
    top: 18px;
}

/* ==== Hero Section ==== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    background-color: var(--coral);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-section .btn:hover {
    background-color: var(--turquoise);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ==== Sobre Nosotros ==== */
.sobre-nosotros {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ==== Servicios ==== */
.servicios {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-green);
}

.service-icon .icon {
    width: 40px;
    height: 40px;
    fill: var(--turquoise);
}

.service-card h3 {
    color: var(--turquoise);
    margin-bottom: 1rem;
}

/* ==== Ventajas ==== */
.ventajas {
    background-color: white;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.ventaja-item {
    padding: 1.5rem;
    border-left: 3px solid var(--coral);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.ventaja-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.ventaja-item h3 {
    color: var(--turquoise);
    margin-bottom: 0.5rem;
}

/* ==== Testimonios ==== */
.testimonios {
    background-color: var(--light-gray);
}

.testimonios-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonio-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 350px;
    position: relative;
}

.testimonio-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--light-green);
    opacity: 0.5;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.testimonio-content {
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
}

.testimonio-autor {
    margin-top: 1rem;
    text-align: right;
    font-style: italic;
}

/* ==== Contacto ==== */
.contacto {
    background-color: white;
}

.contacto-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contacto-info {
    flex: 1;
    min-width: 200px;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: var(--turquoise);
}

.contact-form {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    background-color: var(--light-gray);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-group.checkbox label {
    font-weight: normal;
}

/* ==== FAQ ==== */
.faq {
    background-color: var(--light-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--turquoise);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
}

.faq-item h3::before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: bold;
}

/* ==== Ubicacion ==== */
.ubicacion {
    background-color: white;
}

.ubicacion-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ubicacion-info {
    flex: 1;
    min-width: 300px;
}

.ubicacion-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.ubicacion-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.ubicacion-item p {
    margin-bottom: 0.3rem;
}

.ubicacion-item p:last-child {
    margin-bottom: 0;
}

.mapa-container {
    flex: 2;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

#google-map {
    width: 100%;
    height: 100%;
    border: none;
}

/* These styles are no longer needed since we replaced the image with Google Maps */
.mapa-placeholder {
    display: none;
}

.mapa-img {
    display: none;
}

/* ==== Footer ==== */
.site-footer {
    background-color: var(--graphite);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-description {
    margin-top: 1rem;
    color: var(--medium-gray);
}

.footer-nav {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    min-width: 150px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--coral);
}

.footer-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: var(--medium-gray);
}

.contact-list li {
    display: flex;
    align-items: center;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ==== Cookie Popup ==== */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.9);
    color: white;
    z-index: 9999;
    padding: 1rem 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content a {
    color: var(--coral);
}

.cookie-content a:hover {
    text-decoration: underline;
}

/* ==== Legal Pages ==== */
.legal-section {
    padding: 3rem 0;
}

.legal-section h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.legal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.update-date {
    text-align: right;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--turquoise);
    text-align: left;
    margin-top: 2rem;
}

.legal-content h2::after {
    left: 0;
    transform: none;
    width: 40px;
}

.legal-content h3 {
    color: var(--coral);
    margin-top: 1.5rem;
}

.legal-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* ==== Gracias Page ==== */
.gracias-section {
    padding: 15rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gracias-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.gracias-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
}

.success-icon {
    width: 100%;
    height: 100%;
}

.gracias-action {
    margin-top: 2rem;
}

/* ==== Animations ==== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .container,
.service-card,
.ventaja-item,
.testimonio-card,
.contacto-content {
    animation: fadeIn 0.8s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* ==== Responsive Design ==== */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-text {
        font-size: 1.2rem;
    }
    
    .about-content,
    .contacto-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .ubicacion-content {
        flex-direction: column;
    }
    
    .mapa-container {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .menu-toggle:checked ~ .nav-list {
        display: flex;
    }
    
    .main-nav .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav .nav-list li {
        width: 100%;
        margin: 0 0 1rem 0 !important;
    }
    
    .main-nav .nav-list li a {
        display: block;
        padding: 0.5rem 0;
    }
    
    .hero-section {
        align-items: flex-start;
        padding-top: 70px; /* Espacio para evitar que el contenido quede bajo el header */
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .hero-section .btn {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .services-grid,
    .ventajas-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo-svg {
        width: 140px;
    }
    
    .hero-section {
        padding-top: 60px;
    }

    .hero-section .container {
        padding: 1.5rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-section .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .service-card,
    .testimonio-card,
    .faq-item,
    .legal-content {
        padding: 1.5rem;
    }
}

/* Create SVG favicon */
@media print {
    .site-header, 
    .site-footer, 
    .cookie-popup {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}

/* Estilos para errores del formulario */
.form-errors {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 3px solid var(--coral);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.form-errors ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    color: var(--coral);
}

.form-errors li {
    margin-bottom: 0.5rem;
}

.gracias-content.error h1 {
    color: var(--coral);
}

.error-icon {
    width: 100%;
    height: 100%;
} 