@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
    --red-b: #8D0801;
    --yellow-c: #F4D58D;
    --red-y: #BF0603;
    --blue-b: #001427;
    --grey-y: #D9D9D9;

    --border-radius: 5rem;


    --font-weight: 700;


    --text: #ffffff;
    --text-dim: #000000;
    --accent: #F4D58D;
    --fd: "Bebas Neue", sans-serif;
    --fs: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
}

body {
    background-color: var(--red-b);

}


.header {
    position: fixed;
    top: 0;
    padding: 20px 8%;
    background: transparent;
    transition: transform 0.3;
    z-index: 1100;
    font-family: var(--fd);
    height: 80px;
    width: 100%;
    background: var(--red-b);

}

.header.hide {
    transform: translate(-100%);
    border: none;
}

.nav {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-radius: 10px;

}

.menu-links {
    display: flex;
    align-items: center;
}
.dropdown_menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;

    /* Estado inicial: oculto pero animable */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    pointer-events: none;

    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0s linear 0.4s;

    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;

    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0s linear 0s;
}

.nav-drop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.dropdown_menu li {
    padding: 0.5rem;
    display: flex;
}

.toggle_btn i {
    color: var(--text);
    font-size: 2rem;
    position: absolute;
    top: 2.7rem;
    right: 2rem;
    display: none;
}

.menu-links-drop {
    display: flex;
    flex-direction: column;
}

.menu-links-drop li {
    color: var(--text);
    font-size: 1.5rem;
}

.menu-links-drop a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.8rem;
}

.menu-links {

    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;

}

.menu-links a {
    text-decoration: none;
    color: var(--text);
}

.menu-links li {
    color: var(--text);
    font-size: 2rem;
}

.menu-links li:hover::after,
.menu-contact a:hover::after {
    content: ']';
}

.menu-links li:hover::before,
.menu-contact a:hover::before {
    content: '[';
}

.menu-contact a {
    color: var(--text);
    font-size: 2rem;
    text-decoration: none;
}

.logo-img {
    width: 100px;
    height: 60px;
}

#home {
    position: relative;
    padding-top: 80px;
    height: 100vh;
    overflow: hidden;
    width: 100%;
}

.content-hero-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    z-index: 110;
    top: 10%;
}

.subtext-hero {
    color: #FFF;
    font-family: "Montserrat";
    font-size: 24px;
    font-style: light;
    font-weight: 400;
    line-height: normal;
}

.text-hero {
    color: #FFF;
    font-family: "Bebas Neue";
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.logo-hero {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%);
    z-index: 1000;
}

.elipse-hero {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20%;
    z-index: 100;
}

#about {
    display: flex;
    position: relative;
    padding-top: 80px;
    min-height: 50vh;
    overflow: hidden;
    width: 100%;
    background: var(--red-y);
    padding: 2rem;

    justify-content: center;
    align-items: center;
}

.contenedor-about {
    width: 100%;
    height: inherit;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;

}

.contenedor-title-about,
.contenedor-p-about {
    flex: 1;
}

.contenedor-title-about {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor-p-about {
    display: flex;
    align-items: center;
}

.contenedor-title-about h2 {
    color: var(--text);
    font-family: "Bebas Neue";
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.contenedor-p-about p {
    color: var(--text);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    /* 40px */
}


.aio-section {
    background: var(--red-b);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 40px;
    padding: 80px 20px;
    /*max-width: 900px;*/
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    grid-template-areas:
        "texto"
        "tarjeta";

}

.aio-content {
    grid-area: texto;
    text-align: center;
    max-width: 750px;
}

.aio-badge {
    background-color: var(--text);
    color: var(--blue-b);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.aio-title {
    font-size: 32px;
    color: var(--text);
    margin: 20px 0 15px 0;
    line-height: 1.2;
}

.aio-text {
    font-size: 18px;
    color: var(--text);
    line-height: 1.6;
}

.aio-preview-card {
    grid-area: tarjeta;
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-bots {
    background-color: #f9fafb;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bot-name {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

.card-content {
    padding: 25px;
}

.user-prompt {
    font-style: italic;
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #d1d5db;
}

.ai-answer {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 18px;
    border-radius: 10px;
    color: #166534;
    line-height: 1.5;
}

#services {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 80px;
    min-height: 100vh;
    overflow: hidden;
    width: 100%;
    background: var(--grey-y);
    padding: 2rem;

    justify-content: space-around;
    align-items: center;
}

#services h2 {
    color: var(--blue-b);
    font-family: "Bebas Neue";
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.contenedor-services-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "card-1 card-2"
        "card-3 card-4";
    gap: 1rem;
    width: 100%;
    max-width: 850px;
    justify-items: center;
}

#service-diseño {
    grid-area: card-1;
}

#service-mantenimiento {
    grid-area: card-2;
}

#service-actualizacion {
    grid-area: card-3;
}

#service-optimizacion {
    grid-area: card-4;
}

.card {
    display: flex;
    max-width: 400px;
    max-height: 300px;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: var(--red-b);
    transition:transform 0.9s ease-out;
}
.card:hover{
    transform: scale(1.1);
    background: var(--red-y);
}

.card img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    color: var(--text);
}

.card h6 {
    color: var(--grey-y);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Bebas Neue";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.card p {
    color: var(--text);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

#procces {
    background: var(--yellow-c);
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding: 10rem 8rem 12rem 8rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:5rem;
}

#procces h2 {
    color: var(--blue-b);
    font-family: Montserrat;
    font-size: 4rem;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.contenedor-card-procces {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.card-step {
    max-width: 230px;
    height: 360px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
}

.card-step img {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
}

.card-step h6 {
    color: var(--blue-b);
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.card-step p {
    color: var(--blue-b);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}
.section-four {
	min-height: 100vh;
	width: 100%;
	background: var(--red-y);
	position: relative;
}

#section-four-text-tall {
	font-family: var(--fd);
	font-size: 2rem;
	color: var(--text);
}

#section-four-text-small {
	font-family: var(--fs);
	font-size: 1rem;
	color: var(--text);
}

#bottom-section-four {
	position: absolute;
	bottom: 0;

}

#top-section-four {
	position: absolute;
	right: 0;

}

.container-section-four {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr auto 1fr;
}

.container-section-four-text {
	padding: 1rem;
	align-self: center;
}

.container-section-four-card {
	height: auto;
	width: auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem;
	grid-column: 2/4;
	grid-row: 3/4;
	justify-self: center;
	align-self: end;
}

.card-plan {
	padding: 8px;
	height: 20rem;
	width: 15rem;
	background: var(--yellow-c);
	box-shadow: 10px 10px;
	transition: ease-out 0.3s;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;


}

.card-plan:hover {
	transform: scale(1.01);

}

.card-title h6,
.card-description p,
.card-content-plan p {
	font-size: 1rem;
	color: var(--blue-b);
	font-family: var(--fs);
}

.card-button-action-plan button {
	display: inline-block;
	background-color: #0f172a;
	color: #ffffff;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	border: none;
	cursor: pointer;
}
.card-button-action-plan a {
	text-decoration: none;
	display: inline-block;
}

.section-contact {
	height: 100vh;
	width: 100%;
	background: var(--red-b);
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr;
}

.container-contact {
	grid-column: 2/4;
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.container-contact-text h2 {
	color: var(--text);
	font-family: var(--fd);
	font-size: 3rem;
	letter-spacing: .05em;
}

.container-contact-text p {
	color: var(--text);
	font-family: var(--fs);
	font-size: 1.1rem;
	opacity: .8;
	max-width: 30rem;
}

.container-contact-card {
	box-shadow:
		blue 0px 0px 0px 2px inset,
		var(--color-accent-dark) 10px -10px 0px -3px,
		rgb(31, 193, 27) 10px -10px,
		var(--color-accent-dark) 20px -20px 0px -3px,
		rgb(255, 217, 19) 20px -20px,
		var(--color-accent-dark) 30px -30px 0px -3px,
		rgb(255, 156, 85) 30px -30px,
		var(--color-accent-dark) 40px -40px 0px -3px,
		rgb(255, 85, 85) 40px -40px;
	padding: 2rem;
	width: 24rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* --- WhatsApp: prioridad --- */
.contact-whatsapp {
	display: flex;
	align-items: center;
	gap: 1rem;
	background-color: var(--blue-b);
	color: #ffffff;
	text-decoration: none;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	transition: transform 0.2s ease, background-color 0.3s ease;
}

.contact-whatsapp:hover {
	background-color: #1ebe5b;
	transform: translateY(-3px);
}

.contact-whatsapp i {
	font-size: 2.5rem;
}

.contact-whatsapp-info {
	display: flex;
	flex-direction: column;
}

.contact-whatsapp-title {
	font-family: var(--fs);
	font-weight: var(--font-weight);
	font-size: 1.1rem;
}

.contact-whatsapp-subtitle {
	font-family: var(--fs);
	font-size: .85rem;
	opacity: .85;
}

/* --- Contacto secundario --- */
.container-contact-more {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.container-contact-more span {
	color: var(--text);
	font-family: var(--fs);
	font-size: .9rem;
	opacity: .7;
}

.contact-email {
	display: flex;
	align-items: center;
	gap: .75rem;
	color: var(--text);
	text-decoration: none;
	font-family: var(--fs);
	font-size: .95rem;
	transition: color 0.3s ease;
}

.contact-email:hover {
	color: var(--yellow-c);
}

.contact-email i {
	font-size: 1.3rem;
}


.section-faq {
	padding: 80px 20px;
	background-color: #fafafa;
	font-family: system-ui, -apple-system, sans-serif;
}

.faq-container {
	max-width: 1100px;
	margin: 0 auto;
}

.faq-header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 60px auto;
}

.faq-header h2 {
	font-size: 2.5rem;
	color: #111111;
	margin-bottom: 16px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.faq-header p {
	font-size: 1.1rem;
	color: #666666;
	line-height: 1.5;
}

/* El Grid maneja el diseño responsivo sin necesidad de Media Queries complejas */
.faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}

.faq-item {
	background: transparent;
}

.faq-item h3 {
	font-size: 1.25rem;
	color: #111111;
	margin-bottom: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.faq-item p {
	font-size: 1rem;
	color: #555555;
	line-height: 1.6;
}



.footer {
	display: flex;
	align-items: center;
	min-height: 50vh;
	width: 100%;
	background: var(--red-b);
	position: relative;
	padding: 4rem 5rem 2rem;
}

.container-footer {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.footer-top {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 3rem;
	border-bottom: 4px solid var(--text);
	padding-bottom: 2.5rem;
}

/* --- Marca --- */
.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 20rem;
}

.footer-logo {
	width: 120px;
	height: auto;
}

.footer-brand-text {
	color: var(--text);
	font-family: var(--fs);
	font-size: 1rem;
	line-height: 1.5;
	opacity: .85;
}

/* --- Títulos de columna --- */
.footer-links-title {
	display: block;
	color: var(--text);
	font-family: var(--fd);
	font-size: 1.2rem;
	letter-spacing: .05em;
	margin-bottom: .5rem;
}

/* --- Links de navegación --- */
.footer-links ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: .6rem;
}

.footer-links a {
	text-decoration: none;
	font-size: 1.2rem;
	font-family: var(--fs);
	color: var(--text);
	transition: padding-left 0.2s ease;
}

.footer-links a:hover {
	text-decoration: underline var(--text) solid 3px;
	padding-left: .3rem;
}

/* --- Contacto --- */
.footer-contact {
	display: flex;
	flex-direction: column;
	gap: .8rem;
}

.footer-whatsapp,
.footer-email,
.footer-instagram {
	display: flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	font-family: var(--fs);
	font-size: 1rem;
	color: var(--text);
	transition: color 0.3s ease, transform 0.2s ease;
}

.footer-whatsapp i,
.footer-email i,
.footer-instagram i {
	font-size: 1.4rem;
}

.footer-whatsapp:hover,
.footer-email:hover,
.footer-instagram:hover {
	color: var(--red-y);
	transform: translateX(4px);
}

/* --- Barra inferior --- */
.footer-bottom {
	display: flex;
	justify-content: center;
}

.footer-bottom p {
	color: var(--text);
	font-family: var(--fs);
	font-size: .85rem;
	opacity: .7;
}


.reveal {
    opacity: 0;
    transform: translate(-50%, 100%);
    transition: opacity 0.7s ease-out, transform 0.9s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reveal-text {
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 1s ease-out, transform 0.9s ease-out;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0%);
}

.reveal-text-1 {
    opacity: 0;
    transform: translate(100%);
    transition: opacity 0.7s ease-out, transform 0.9s ease-out;
}

.reveal-text-1.visible {
    opacity: 1;
    transform: translate(0%);
}

@media (max-width: 920px) {
    .content-hero-text {
        top: 5%;
    }

    .logo-hero {
        top: 50%;
        height: 200px;
        width: 400px;
    }
    .section-contact {
		height: auto;
		padding: 4rem 1.5rem;
		display: block;
	}
	.container-contact {
		width: 100%;
	}
	.container-contact-card {
		width: 100%;
	}
    .footer {
		padding: 3rem 1.5rem 1.5rem;
		min-height: auto;
	}

	.footer-top {
		flex-direction: column;
		gap: 2rem;
	}

	.footer-brand {
		max-width: 100%;
	}
}

@media (max-width: 480px) {

    .nav .menu,
    .nav .menu-contact {
        display: none;
    }
    .nav .logo{
        position: absolute;
        left: 0;
    }

    .toggle_btn i {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.6rem;
        z-index: 1100;
    }

    .content-hero-text {
        top: 5%;
    }

    .subtext-hero {
        font-size: 1.3rem;
    }

    .text-hero {
        font-size: 3rem;
    }

    .logo-hero {
        height: 150px;
        width: 300px;
        top: 50%;
    }

    .contenedor-services-card {

        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        grid-template-areas:
            "card-1"
            "card-2"
            "card-3"
            "card-4";

    }
    .contenedor-card-procces{
        flex-direction: column;
    }
    #procces h1{
        font-size: 3rem;
    }
    #bottom-section-four {
		display: none;
	}

	#top-section-four {
		display: none;
	}
    .container-section-four-text {
		grid-area: area-texto;

	}

	.container-section-four-card {
		grid-area: area-tarjeta;
		justify-content: center;
	}

	.container-section-four {
		display: grid;
		grid-template-columns: 1fr;
		justify-items: center;
		grid-template-areas:
			"area-texto"
			"area-tarjeta";
	}
}