/* 
* ContaEspaña - Servicios Contables Profesionales
* Color Palette:
* - Cyan (#00bcd4) — for accents and buttons
* - Deep Purple (#3f51b5) — section backgrounds
* - Peach (#ffc107) — CTA elements
* - White/Dark Gray (#f5f5f5, #212121) — background and text
*/

/* ----------------- RESET & GLOBALS ----------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #00bcd4;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #3f51b5;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1.2rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* ----------------- HEADER & NAVIGATION ----------------- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo a {
    display: flex;
    align-items: center;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    margin-left: 1.5rem;
}

.desktop-nav a {
    color: #212121;
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00bcd4;
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav li.active a {
    color: #00bcd4;
}

.desktop-nav li.active a::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu {
    position: relative;
}

.menu-checkbox {
    display: none;
}

.menu-icon {
    display: block;
    cursor: pointer;
    padding: 10px;
}

.menu-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #212121;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-checkbox:checked ~ .menu-icon .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-checkbox:checked ~ .menu-icon .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-checkbox:checked ~ .menu-icon .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    border-radius: 0 0 5px 5px;
}

.menu-checkbox:checked ~ .mobile-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 0.8rem;
}

.mobile-nav a {
    color: #212121;
    display: block;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.mobile-nav a:hover {
    background-color: #f9f9f9;
    color: #00bcd4;
}

.mobile-nav li.active a {
    color: #00bcd4;
    border-left: 3px solid #00bcd4;
    padding-left: 0.8rem;
}

/* ----------------- HERO SECTION ----------------- */
.hero-section {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.85) 0%, rgba(0, 188, 212, 0.85) 100%), url('img/pZJj3U.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #ffc107;
    color: #212121;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #ffca28;
    transform: translateY(-3px);
    color: #212121;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

.hero-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ----------------- ABOUT SECTION ----------------- */
.about-section {
    padding: 5rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    color: #3f51b5;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #00bcd4;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ----------------- SERVICES SECTION ----------------- */
.services-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.service-icon span {
    font-size: 2rem;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #3f51b5;
}

.service-card p {
    text-align: center;
    margin-bottom: 0;
}

/* ----------------- WHY US SECTION ----------------- */
.why-us-section {
    padding: 5rem 0;
    background-color: #3f51b5;
    color: white;
}

.why-us-section .section-title {
    color: white;
}

.why-us-section .section-title::after {
    background-color: #ffc107;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.why-us-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.why-us-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #00bcd4;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.why-us-icon span {
    font-size: 1.8rem;
    color: white;
}

.why-us-item h3 {
    text-align: center;
    font-size: 1.3rem;
}

.why-us-item p {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ----------------- PRICING SECTION ----------------- */
.pricing-section {
    padding: 5rem 0;
    background-color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    background-color: #00bcd4;
    color: white;
    transform: scale(1.03);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.03);
}

.featured .pricing-header {
    background-color: rgba(0, 0, 0, 0.1);
}

.pricing-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.featured .pricing-header h3 {
    color: white;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
}

.featured .pricing-price {
    color: white;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.7;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.featured .pricing-features li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li::before {
    content: "✓";
    color: #00bcd4;
    margin-right: 0.5rem;
}

.featured .pricing-features li::before {
    color: white;
}

.pricing-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.pricing-button {
    display: inline-block;
    background-color: #00bcd4;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
}

.pricing-button:hover {
    background-color: #00acc1;
    color: white;
}

.featured .pricing-button {
    background-color: #ffc107;
    color: #212121;
}

.featured .pricing-button:hover {
    background-color: #ffca28;
}

/* ----------------- TESTIMONIALS SECTION ----------------- */
.testimonials-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: -5px;
    font-size: 5rem;
    color: #00bcd4;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 2px solid #00bcd4;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info p {
    margin-bottom: 0.2rem;
}

.author-info p:last-child {
    color: #666;
    font-size: 0.9rem;
}

/* ----------------- CONTACT SECTION ----------------- */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #3f51b5 0%, #00bcd4 100%);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-title::after {
    background-color: #ffc107;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: #212121;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00bcd4;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.8rem;
    margin-top: 0.3rem;
}

.checkbox-group label {
    color: #616161;
    font-weight: normal;
    font-size: 0.9rem;
}

.form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.submit-button {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #00acc1;
    transform: translateY(-3px);
}

.contact-info {
    color: white;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-map {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ----------------- FOOTER ----------------- */
footer {
    background-color: #212121;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: #00bcd4;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #00bcd4;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ----------------- COOKIE BANNER ----------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 33, 33, 0.95);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-banner p {
    margin: 0 1rem 0 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons button {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-buttons button:hover {
    background-color: #00acc1;
}

.cookie-buttons a {
    color: white;
    text-decoration: underline;
    padding: 0.5rem 0;
}

/* ----------------- GRACIAS PAGE ----------------- */
.gracias-section {
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.85) 0%, rgba(0, 188, 212, 0.85) 100%), url('img/s4fClT.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.gracias-section .container {
    display: flex;
    justify-content: center;
}

.gracias-content {
    max-width: 700px;
    text-align: center;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gracias-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.gracias-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.gracias-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ----------------- LEGAL PAGES ----------------- */
.legal-section {
    padding: 5rem 0;
    background-color: white;
}

.legal-section h1 {
    text-align: center;
    color: #3f51b5;
    margin-bottom: 3rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    color: #00bcd4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1.5rem;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.legal-content th, .legal-content td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.legal-content th {
    background-color: #f9f9f9;
}

/* ----------------- RESPONSIVE STYLES ----------------- */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-top: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .services-grid,
    .pricing-grid,
    .testimonials-grid,
    .why-us-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner p {
        margin: 0 0 1rem 0;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .gracias-buttons {
        flex-direction: column;
    }
    
    .gracias-buttons a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-section,
    .about-section,
    .services-section,
    .why-us-section,
    .pricing-section,
    .testimonials-section,
    .contact-section,
    .gracias-section,
    .legal-section {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-map {
        margin-top: 1rem;
    }
}

/* Fix horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fix possible overflowing elements */
img, svg, iframe, video, object {
    max-width: 100%;
}

/* ----------------- CONTACT INFO SECTION ----------------- */
.contact-info-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.85) 0%, rgba(0, 188, 212, 0.85) 100%), url('img/RgadNE.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.contact-info-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-info-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-info-content p:last-child {
    margin-bottom: 0;
} 