/*
* ContaFiscal - Servicios de Contabilidad
* Hoja de estilos principal
*/

/* Variables y reset */
:root {
    --color-primary: #4B1D3F;
    --color-accent: #FF6B6B;
    --color-light: #FDF0E0;
    --color-green: #00BFA6;
    --color-dark: #222222;
    --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #fff;
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--color-primary);
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--color-dark);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-speed);
}

a:hover {
    color: var(--color-primary);
}

section {
    padding: 80px 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(75, 29, 63, 0.4);
}

.btn-secondary {
    background-color: var(--color-green);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 191, 166, 0.3);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(75, 29, 63, 0.4);
}

.btn-nav {
    background-color: var(--color-accent);
    color: white;
    padding: 8px 16px;
    font-weight: 600;
}

.btn-nav:hover {
    color: white;
    background-color: var(--color-green);
}

.btn-cookie {
    background-color: var(--color-green);
    color: white;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn-cookie:hover {
    background-color: var(--color-accent);
    color: white;
}

/* Header y navegación */
.main-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: inline-block;
}

.logo svg {
    height: 40px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(75, 29, 63, 0.9) 0%, rgba(75, 29, 63, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    color: var(--color-light);
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 0.6s backwards;
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Benefits Section */
.benefits {
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 20px;
}

/* Services Section */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card ul, .service-card a {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
}

.service-card ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

.service-card li {
    margin-bottom: 10px;
}

.service-card .btn {
    margin: 0 20px 20px;
}

/* Why Us Section */
.why-us {
    background-color: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.why-us h2 {
    color: var(--color-light);
}

.why-us h2:after {
    background-color: var(--color-accent);
}

.why-us-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.why-us-list {
    flex: 1;
    list-style: none;
}

.why-us-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    animation: fadeInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.why-us-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.why-us-list li:nth-child(3) {
    animation-delay: 0.4s;
}

.why-us-list li:nth-child(4) {
    animation-delay: 0.6s;
}

.why-us-list li:nth-child(5) {
    animation-delay: 0.8s;
}

.why-us-list svg {
    margin-right: 15px;
    flex-shrink: 0;
}

.why-us-list span {
    color: var(--color-light);
    font-size: 1.1rem;
}

.why-us-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.why-us-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed);
}

.why-us-image img:hover {
    transform: rotate(2deg) scale(1.02);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 5rem;
    color: rgba(255, 107, 107, 0.1);
    font-family: Georgia, serif;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--color-dark);
}

.testimonial-author {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    color: var(--color-primary);
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #777;
}

/* Contact Form Section */
.contact-form {
    background-color: white;
}

.service-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    outline: none;
}

.form-check {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check label {
    font-size: 0.9rem;
}

.service-form .btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
}

/* Contact Section */
.contact {
    background-color: var(--color-light);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-map {
    flex: 1;
    min-width: 300px;
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-description {
    color: var(--color-light);
    opacity: 0.8;
    margin-top: 20px;
    max-width: 300px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--color-light);
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-address, .footer-contact {
    color: var(--color-light);
    margin-bottom: 5px;
}

.footer-contact {
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--color-light);
    font-weight: 600;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(75, 29, 63, 0.95);
    padding: 15px;
    color: white;
    z-index: 1000;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    color: white;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .why-us-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path var(--transition-speed);
        pointer-events: none;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        pointer-events: all;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-form {
        padding: 20px;
    }
} 