:root {
    --primary-color: #4dabf7; /* Changed to sky blue */
    --secondary-color: #ff6b00; /* Changed to vibrant orange */
    --tertiary-color: #7da2a9;
    --text-color: #333333;
    --text-light: #777777;
    --light-bg: #f5f5f5;
    --dark-bg: #1a2a36;
    --white: #ffffff;
    --black: #000000;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Add this new style for better mobile tapping */
a[href^="tel:"], 
a[href^="https://wa.me/"] {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

a[href^="tel:"]:hover, 
a[href^="https://wa.me/"]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 5rem 0;
}

.grey-bg {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.link-arrow:after {
    content: "→";
    margin-left: 5px;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--secondary-color);
}

.link-arrow:hover:after {
    margin-left: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.full-width {
    width: 100%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-logo {
    height: 50px;
    width: auto;
    margin-bottom: 5px;
    transition: var(--transition);
}

.scrolled .company-logo {
    height: 40px;
}

.logo .tagline {
    font-size: 0.875rem;
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 0;
    transition: var(--transition);
}

.scrolled .logo .tagline {
    color: var(--text-light);
}

#navbar ul {
    display: flex;
}

#navbar ul li {
    margin: 0 1rem;
}

#navbar ul li a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.scrolled #navbar ul li a {
    color: var(--text-color);
}

#navbar ul li a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

#navbar ul li a:hover:after,
#navbar ul li a.active:after {
    width: 100%;
}

.btn-contacto {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.btn-contacto:hover {
    background-color: var(--primary-color);
}

.btn-contacto:after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.scrolled .hamburger span {
    background: var(--primary-color);
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('hero-bg.png') !important;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Servicios Destacados */
.servicios-destacados {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    margin-top: -100px;
    z-index: 2;
}

.servicio-card {
    background-color: var(--white);
    border-radius: 12px; /* Increased border radius */
    padding: 2.5rem; /* Increased padding */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Improved shadow */
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    overflow: hidden;
}

.servicio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--secondary-color);
}

.servicio-card.highlight {
    border-top: 3px solid var(--secondary-color);
}

.servicio-card .icon {
    font-size: 3rem; /* Larger icon */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
}

.servicio-card:hover .icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.servicio-card h3 {
    margin-bottom: 1rem;
}

.servicio-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Servicios Detalle */
.servicio-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 5rem;
    align-items: center;
}

.servicio-detalle:last-child {
    margin-bottom: 0;
}

.servicio-detalle.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.servicio-detalle.reverse .servicio-contenido {
    direction: ltr;
}

.servicio-imagen {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

#servicio-construccion .servicio-imagen {
    background-image: url('construction-service.png') !important;
    background-size: cover;
    background-position: center;
}

#servicio-humedad .servicio-imagen {
    background-image: url('humidity-treatment.png') !important;
    background-size: cover;
    background-position: center;
}

#servicio-diseno .servicio-imagen {
    background-image: url('interior-design.png') !important;
    background-size: cover;
    background-position: center;
}

#servicio-tejados .servicio-imagen {
    background-image: url('roof-repair.jpg') !important;
    background-size: cover;
    background-position: center;
}

#servicio-escayola .servicio-imagen {
    background-image: url('plaster-decoration.jpg') !important;
    background-size: cover;
    background-position: center;
}

.servicio-contenido h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.servicio-contenido h4 {
    margin: 1.5rem 0 1rem;
    color: var(--secondary-color);
}

.servicio-contenido ul {
    margin-bottom: 1.5rem;
}

.servicio-contenido ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.servicio-contenido ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.servicio-contenido .btn {
    margin-top: 1rem;
}

/* Portfolio Carousel Styles */
.portfolio-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: 30px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--box-shadow);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.portfolio-item:nth-child(1) .portfolio-img {
    background-image: url('project1.png') !important;
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(2) .portfolio-img {
    background-image: url('project2.png') !important;
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(3) .portfolio-img {
    background-image: url('project3.png') !important;
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(4) .portfolio-img {
    background-image: url('project4.png') !important;
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(5) .portfolio-img {
    background-image: url('project5.png') !important;
    background-size: cover;
    background-position: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 71, 86, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.portfolio-overlay p {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    margin-bottom: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-image .image-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background-image: url('team-image.png') !important;
    background-size: cover;
    background-position: center;
    box-shadow: var(--box-shadow);
}

.team-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.team-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Testimonial Section */
.testimonial-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    visibility: hidden;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    visibility: visible;
}

.testimonial-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.client-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.client-info p {
    color: var(--text-light);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    color: var(--secondary-color);
}

.testimonial-dots {
    display: flex;
    margin: 0 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary-color);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-item:nth-child(1) .blog-img {
    background-image: url('blog1.png') !important;
    background-size: cover;
    background-position: center;
}

.blog-item:nth-child(2) .blog-img {
    background-image: url('blog2.png') !important;
    background-size: cover;
    background-position: center;
}

.blog-item:nth-child(3) .blog-img {
    background-image: url('blog3.png') !important;
    background-size: cover;
    background-position: center;
}

.blog-item:nth-child(4) .blog-img {
    background-image: url('blog4.png') !important;
    background-size: cover;
    background-position: center;
}

.blog-item:nth-child(5) .blog-img {
    background-image: url('blog5.png') !important;
    background-size: cover;
    background-position: center;
}

.blog-item:nth-child(6) .blog-img {
    background-image: url('https://source.unsplash.com/random/600x400/?construction-calculator');
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.blog-content h3:hover {
    color: var(--secondary-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
    opacity: 0.8;
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links h4, .footer-services h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4:after, .footer-services h4:after, .footer-contact h4:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li, .footer-services ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a, .footer-services ul li a {
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-services ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
}

.footer-legal a {
    color: var(--white);
    opacity: 0.7;
    margin-left: 1.5rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Add new styles for team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #f5f5f5;
  margin: 0 auto 1rem;
  overflow: hidden;
}

/* Add before/after styles */
.before-after-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 2rem 0;
}

.before-after-item {
  position: relative;
}

.before-after-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .grid-3 .servicio-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .servicio-detalle, .servicio-detalle.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }
    
    .servicio-imagen {
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    header {
        padding: 1rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    #navbar ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    #navbar.open ul {
        right: 0;
    }
    
    #navbar ul li {
        margin: 1rem 0;
    }
    
    #navbar ul li a {
        color: var(--text-color);
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 .servicio-card:last-child {
        grid-column: auto;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .footer-legal a {
        margin: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .servicio-imagen {
        height: 200px;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .contact-form, .contact-info {
        padding: 1.5rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}